hash argument to get call

Greg Whalin greg at meetup.com
Wed Jan 10 00:26:22 UTC 2007

The 3 argument version of that which takes the hash allows the caller to
override the chosen bucket by passing in a specified hash key.  By default,
you can just call mc.set( key, value) and rely on the client to determine
the memcache server internally.


On 1/9/07, S Edirisinghe <edirisinghe.s at gmail.com> wrote:
> Hi all,
> I'm new to the list and have not found out how to search the archive.
> While I find out how, I will post this (hopefully not-stupid ) question.
> I'm using the java client so, I'll ask about the method in the javadoc
>         MemCachedClient mc = new MemCachedClient();
>         String key   = "cacheKey1";
>         Object value = SomeClass.getObject();
>         Integer hash = new Integer(45);
> mc.set(key, value, hash);
> What is the hash (Integer)  arg to this method do? Is this a way for
> picking the bucket? I wasn't sure if this was a seed for the hash function ?
> I'm pretty new to using memcache d. Your help is appreciated.
> thanks

Greg Whalin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070109/e86ba801/attachment.htm

More information about the memcached mailing list