Caching a 302MB object

后端 未结 4 870
你的背包
你的背包 2021-01-05 21:51

I have an object (actually, an array of objects) that\'s 302MB. When I try to cache it with memcached it doesn\'t work, no matter how much memory I give memcached, apparentl

4条回答
  •  时光说笑
    2021-01-05 22:02

    There's no way that you should need a 302Mb instance of an object (or array of objects) to be cached.

    Without seeing the code, I can't suggest how...but there has to be a good way to refactor so that you're caching on a smaller scale.

提交回复
热议问题