Deep Parekh
unread,Jan 27, 2013, 8:50:24 AM1/27/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spymem...@googlegroups.com
Hi,
I had created two memcached instances in two different servers. I am storing data in one server through spymemcached using :
client = new MemcachedClient(new InetSocketAddress("127.0.0.1",11211));
.
.
.
public Future<Boolean> addToMemCache(String key, int timeOut, Object val) {
Future<Boolean> future = client.set(key, timeOut, val);
return future;
}
.
.
.
.
Then I am trying to retrieve that data from another memcached which is in another physical server using....
client = new MemcachedClient(new InetSocketAddress("IP of that pc",11211));
and then
.
.
.
public Object getMemcachedValue(String key) {
return client.get(key);
}
But I am getting error in retrieving the data.
Please help me how can I get the data?
Thank YOu.