On Thu, Oct 17, 2013 at 8:58 AM, sekhar mekala <[email protected]> wrote:
> 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");
>
Memcache doesn't care about the content of what you set/get. If your
question is about the size, the default limit is 1MB so you either
need to chunk up the data for bigger files or use the -l option to
raise the size limit (which is allowed but perhaps not a good idea).
--
Les Mikesell
[email protected]
--
---
You received this message because you are subscribed to the Google Groups
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.