Details
-
Task
-
Resolution: Fixed
-
Major
-
Security Level: Public
-
None
Description
Hi
I think this is a dump question but here goes.
If you read about how to use Memcached it is often like this:
//write query
$sql = "select * from somewhere where something=something";
//create an index key for memcache
$key = md5('query'.$sql);
//lookup value in memcache
$result = $memcache->get($key);
//check if we got something back
if($result == null) {
//fetch from database
$result_sql = mysql_query($sql) or die(mysql_error()." : $sql");
if(mysql_num_rows($result_sql)> 0) {
$result = mysql_fetch_object($result_sql);
//store in memcache
Read more https://techzone.couchbase.com/forums/node/1000807
–
This is an automatic message from Couchbase Forums
To manage your subscriptions, browse to
https://techzone.couchbase.com/forums/user/1000697/notifications
You can unsubscribe at
https://techzone.couchbase.com/forums/notifications/unsubscribe/sid/11?signature=2cd5666dcfbd5c6bddb823939d508cd2
[Created via e-mail received from: "community_admin@couchbase.com" <community_admin@couchbase.com>]