Hi!
Are yo using the PHP wrapper for libmemcached?
Cheers,
-Brian
On Dec 3, 2008, at 1:35 AM, ruturajv wrote:
I too faced similar problem, eg
using.. PHP
<code>
<?php
$m = new Memcache;
$m->addserver('192.168.28.7, 11211);
$m->addserver('192.168.28.8, 11211);
$m->addserver('192.168.28.9, 11211);
for ($i=0; $i<30; $i++) {
$v = $m->set('fkey'.$i, $i);
// $va = $m->get('key'.$i);
var_dump($va);
}
</code>
and I'm unable to retrieve "ALL" keys using this (Python)
<code>
import memcache
m = memcache.Client(['192.168.28.7:11211', '192.168.28.8:11211',
'192.168.28.9:11211'])
for i in range(30):
a = m.get('key'+str(i))
print i, a
</code>
On Dec 3, 1:43 pm, "matt farey" <[EMAIL PROTECTED]> wrote:
Sorry for top post, have you looked at using thrift (apache
incubator) and memcached together, ala facebook?
Sent from my BlackBerry® wireless device
-----Original Message-----
From: aniketh <[EMAIL PROTECTED]>
Date: Wed, 3 Dec 2008 00:12:02
To: memcached<[email protected]>
Subject: using memcached with c and python api
hey,
i've been trying to use the libmemcached api from c and the python
api
to access memcached.
however, i have come across a problem. I am setting values on
multiple
servers using c, and attempting to retrieve it using python
fetching the keys back in c works fine, but python throws a lot of
"not found". i'm guessing it is something to do with the hash
algorithm. i tried setting it to crc32 in c, but it does not help.
any pointers would be appreciated.
thanks
regards,
aniketh
--
_______________________________________________________
Brian "Krow" Aker, brian at tangent.org
Seattle, Washington
http://krow.net/ <-- Me
http://tangent.org/ <-- Software
_______________________________________________________
You can't grep a dead tree.