Redis是否支持将一个key拆分成多个Redis Instance?

Does Redis support split one key into multiple Redis Instances?

比如我在redis中有一个大列表,一个实例装不下。 Redis 是否支持将列表拆分为其他实例?

如果是,我需要做任何配置吗?

我不确定你是在谈论系统内存还是列表的实现大小。

Redis 列表

The max length of a list is 232 - 1 elements (4294967295, more than 4 billion of elements per list).

您需要超过 40 亿个元素吗?对于一个 10 字节的字符串,仅在字符串存储中的一个列表中至少有 40GB,不计算任何列表额外的实现开销。

内存

如果列表中有 space 但内存不足,则:

If Redis can't remove keys according to the policy, or if the policy is set to noeviction, Redis will start to reply with errors to commands that would use more memory, like SET, LPUSH, and so on, and will continue to reply to read-only commands like GET - in redis.conf 2.8

这是否澄清了您对此事的疑问?