Caching a 302MB object

后端 未结 4 897
你的背包
你的背包 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

    You could perhaps use shared memory (but with that size I would vote against it) or use a RAM drive.

    Is this for one webserver or are you looking for a common cache for multiple web servers?

    I still join the others when they are saying that you probably need another approach. Try to explain what kind of data it is that you want to cache.

提交回复
热议问题