I'm trying to cache 1 billion items in memcached, which have a URL
key.
The value of one item has 12 bytes (3 integers). However, the key is
also been stored in memory, which increases the RAM size greatly. I'm
using a Base64 of a MD5 of a URL, but even so each item is being
cached in 160 bytes according to the "stats sizes" command.

To save space I would like to not cache these keys. I'm willing to
accept the collision problem of having different items mapped to the
same entry.

Is there any way/setup to not store the keys in memcached (or
membase) ?

Is there any way/setup to reduce the waste space of small items like
these? How can I set a tiny slab size?


Thank you in advance

Reply via email to