Multiple caches in memcached?

Steven Grimm sgrimm at
Wed Aug 2 08:56:20 UTC 2006

There is no built-in support for separate namespaces, but we solve the 
problem I think you're describing by just putting a short prefix at the 
start of each key to indicate its type. If you really only have two data 
types your prefix can be as small as a single character! That approach 
works like a charm for us.


Abhishek Pokharna wrote:
> Guys
>    I wanted to know if there is any way I could have multiple caches 
> existing on a single memcached daemon? I.e I have multiple caches like 
> Users(key is a username),Groups(key is a groupid) etc.I do not want to 
> mix both of these caches into one cache that stores both types of keys.
> Thanks,
> -Abhishek
> ------------------------------------------------------------------------
> Here's a new way to find what you're looking for - Yahoo! Answers 
> <*> 

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the memcached mailing list