Quantcast
Channel: Limiting the size of memcache storage - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Limiting the size of memcache storage

$
0
0

I am using the FUSE file system fuse.py and plan to use memcache to store the files. I want to have a small amount of memcache space so that I know what files are being stored and what files are being replaced.

I understand that Memcache has slabs which stores data of that particular size. But is it possible to have only one slab? For example have one slab of 5mb, with each page size 1mb so that I can store maximum of 5 files. And if I need to add the 6th one the LRU policy will remove a file and make space for it.

Basically I want to use memcache as a cache for files and once a file is removed from memcache, store the change in db server.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images