Memcached best practices - small objects and lots of keys or big objects and few keys?

前端 未结 6 1778
梦谈多话
梦谈多话 2021-02-02 11:23

I use memcached to store the integer result of a complex calculation. I\'ve got hundreds of integer objects that I could cache! Should I cache them under a single key in a more

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-02 11:44

    I wrote somewhat large analysis at http://dammit.lt/2008/12/25/memcached-for-small-objects/ - it outlines how to optimize memcached for small object storage - it may shed quite some light on the issue.

提交回复
热议问题