开发者

Is it possible to fragment your data into different Redis stores that you load into memory when needed?

I've read up on the Virtual Memory feature of Redis, and it see开发者_StackOverflow社区ms very interesting and useful. But I was wondering if there was a way to do something different. I'm going to have a situation where I have very discrete blocks of data per user, with up to 10s of millions of rows for power users (but often only a 100k rows for casual users). It would be great if I could have a separate Redis store for each user, and load their data store from disk into memory when they come online, and then back to disk when they go offline. Is this possible?


Long story short, No. Redis does not have a way to selectively load data in and out of RAM. Redis loads data based on its "popularity" and its frequency of access, and the amount of system RAM. The more RAM, the more Redis will try to store.

I would recommend you suggest this to the developers, as it would be very useful feature.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜