MomsFriendlyDevCo / generic-cache

Generic caching module for NodeJS
MIT License
0 stars 0 forks source link

Memcache data compression #1

Open krazyjakee opened 5 years ago

krazyjakee commented 5 years ago

Is it currently done? If not, is it possible to do?

hash-bang commented 5 years ago

I guess you could run the contents that you are trying to store via gzip, but the purpose of Memcache is to be as fast as possible and I feel this would just add an overhead. This also begs the question of what happens when you try to store something above the size boundary that still doesn't fit even when compressed.

If you're query is more about stashing above the 1mb "slab" size you could just configure the Memcache daemon to increase that instead.