我对redis了解不多,但我知道的是Redis在内存中以key-value的形式存储数据,而且数据也是持久化的,间隔存储在磁盘中。
所以我想知道,如果 RAM 是 10GB,那么我们可以在 redis 中存储超过 10GB 的数据吗?
其实我对redis用来存储的磁盘和内存使用情况不是很清楚。
最佳答案
来自Redis FAQ :
Redis is an in-memory but persistent on disk database, so it represents a different trade off where very high write and read speed is achieved with the limitation of data sets that can't be larger than memory.
因此,不幸的是,不,您的数据大小受限于您允许 Redis 使用的 RAM 数量。
关于redis - 由于redis将数据保存在内存中,因此Redis中存储的数据的最大大小是多少,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31483925/