akwei / memcached

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

Problem regards Storing files inside Memcached server? #345

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
HI,

I having an input file(.JSON,.jpg,.txt,etc..).That file i need to store into 
memcached server.
I don't want to convert file to byte[] before passing to memcached server.
If any possibility to store file inside Memcached server?
I am using spymemcached tool.

Example:

MemcachedClient mc=new MemcachedClient(new 
InetSocketAddress("192.168.7.104",11211));  
File file=new File("D:\\test.txt");
mc.set("Key1",3600,file);
mc.get("Key1");

Plz replay if any sollution..
Thanks in Advance..
Sekhar.

Original issue reported on code.google.com by msekhar...@gmail.com on 22 Oct 2013 at 1:42

GoogleCodeExporter commented 9 years ago
Please use a mailing list (or some common sense?). You have to serialize your 
object in some way before handing it to a client. cast it to a string, or...  I 
dunno.

Original comment by dorma...@rydia.net on 7 Dec 2013 at 8:21