oops sorry ! wrong list<br><br><div><span class="gmail_quote">On 10/27/07, <b class="gmail_sendername"><a href="mailto:rkmr.em@gmail.com">rkmr.em@gmail.com</a></b> <<a href="mailto:rkmr.em@gmail.com">rkmr.em@gmail.com</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>I installed the memcachedb with BerkelyDB and libevent. I am using the latest python
1.4 client.<br>If I set an integer and get it I get a string. Is this the expected behavior? And for a list I get serialized data......
<br><br>this is how i started the memcachedb:<br>sudo env LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.6/lib ./memcachedb -p 22222 -l <a href="http://127.0.0.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
127.0.0.1</a> -f database.db -H /home/mark/Desktop/junk/memcachedb-
0.0.4 -u mark -P memcache.pid -d <br><br>from python shell....:<br><br>>>> mc = memcache.Client(['<a href="http://127.0.0.1:22222" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1:22222
</a>'])<br>>>> mc.set('1', 0)<br>True<br>
>>> mc.get('1')<br>'0'<br>>>> mc.set('key', 100)<br>True<br>>>> mc.get('key')<br>'100'<br>>>> a=mc.get('key')<br>>>> type(a)<br>
<type 'str'><br>>>> mc.incr('key')<br>101<br>>>> mc.decr('key')<br>100<br>>>> a=mc.get('key')<br>>>> a<br>'100'<br>>>> mc.incr('key')
<br>101<br>>>> a=mc.get('key')<br>>>> a<br>'101'<br>>>> mc.set('key',[1])<br>True<br>>>> mc.get('key')<br>'(lp1\nI1\na.'<br><br>
</blockquote></div><br>