caching - How to use multiget with memcache in PHP -
just title, how multiget memcache like?
is correct way of utilizing multiget? :
$memcache_obj = new memcache; $memcache_obj->connect('memcache_host', 11211); $var = $memcache_obj->get(array('some_key', 'second_key'));
thanks
update: looking same, check out addition well: http://www.craigiam.com/blog/19/memcached-multiget-using-php-pecl-memcache-class
big pascal_martin solving issue!
considering memcache::get accepts, first parameter, either 1 key, or array of keys, i'd ;-)
quoting :
you can pass array of keys
memcache::get()
array of values.
the result array contain found key-value pairs.
Comments
Post a Comment