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

前端 未结 6 1701
梦谈多话
梦谈多话 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:37

    The less processing you have to do of the cached values, the better. So why not just dump them into the cache individually?

提交回复
热议问题