HI,
I am having issues with the php client reading the data with values are Integer.
Can you please let me know what I am missing.
DEtails:
I have inserted some values in the database.
I am able to retrieve that using JAVA.
Output
===
2011-06-03 15:13:23.085 INFO net.spy.memcached.MemcachedConnection: Added {QA 
sa=localhost/127.0.0.1:11212, #Rops=0, #Wops=0, #iq=0, topRop=null, 
topWop=null, 
toWrite=0, inte
2011-06-03 15:13:23.194 INFO net.spy.memcached.MemcachedConnection: Connection 
state changed for sun.nio.ch.SelectionKeyImpl@1a2961b
Cache get : sample1 : 0
Cache get : sample2 : 1
Cache get : sample3 : 2
Cache get : sample4 : 3
Cache get : sample5 : 4
Cache get : sample6 : 5
Time for 6 puts is 172 ms
2011-06-03 15:13:23.304 INFO net.spy.memcached.MemcachedClient: Shut down 
memcached client
==
Code I am using in Java:
String[] words = { "sample1","sample2","sample3","sample4","sample5","sample6"};
loop for i
String s = words[i];
Object o = cache.get(s);
System.out.println("Cache get : " + s + " : " + o);
=========
The same thing I am trying to retrive from php:
output is
====
NULL
Code I am using in PHP us :
$memcache->connect("127.0.0.1",11212    );
print_r($memcache->get("sample3"));
I am not sure what I am missing in php that it is not printing/retriving the 
data.
If the value inserted into the table is a String it prints.
I taught initially it is a type casting/conversion issue but looks that is not 
the issue

Reply via email to