ssorek / memcachedb

Automatically exported from code.google.com/p/memcachedb
Other
0 stars 0 forks source link

Multi-get bug #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
BUG:

trying to get multiple keys from memcachedb in one call, it returns only
the first key value

php test:

<?php
$memcache = new Memcache;
$memcache->addServer('localhost', 21211);

$memcache->set('key1','val1');
$memcache->set('key2','val2');
$memcache->set('key3','val3');
$memcache->set('key4','val4');

echo "\nnormal get";
echo "\nkey1=>".$memcache->get('key1') ."\n";
echo "key1=>".$memcache->get('key2') ."\n";
echo "key1=>".$memcache->get('key3') ."\n";
echo "key1=>".$memcache->get('key4') ."\n";

$keys = array();
$keys[]= 'key1';
$keys[]= 'key2';
$keys[]= 'key3';
$keys[]= 'key4';
echo "\nmulti get";
echo "<pre>";
print_r($memcache->get($keys));
echo "</pre>";
?>

result:

normal get
key1=>val1
key1=>val2
key1=>val3
key1=>val4

multi-get
<pre>Array
(
    [key1] => val1
)
</pre>

BOX:
Linux
Berkeley DB 4.6.18
libevent 1.4.0-beta
memcachedb-0.1.0

#define END_LEN 5001
#define END_LEN_STR "5000"

./memcachedb -p 21211 -d -r -u root -H ./env -N

Original issue reported on code.google.com by cocorult...@gmail.com on 18 Jan 2008 at 3:16

GoogleCodeExporter commented 8 years ago
Multiple get now is not supported in current version.

Original comment by stv...@gmail.com on 18 Jan 2008 at 3:40

GoogleCodeExporter commented 8 years ago
Hello,

any hint on when will the multiple get feature be supported?
For may projects doing multiple gets in a single call can be a great performance
improvement. 

Thanks

Original comment by razvan....@gmail.com on 21 Jan 2008 at 9:25

GoogleCodeExporter commented 8 years ago
This feature will be supported in next big release, and we are working on it.

Original comment by stv...@gmail.com on 21 Jan 2008 at 9:45

GoogleCodeExporter commented 8 years ago
Now multiple get is supported in memcachedb-1.0.0-beta.

Original comment by stv...@gmail.com on 14 Feb 2008 at 5:10