constant Redis_Cache_Base::KEY_THRESHOLD in Redis 7.2
Computed keys are let's say arround 60 characters length due to key prefixing, which makes 1,000 keys DEL command to be something arround 50,000 bytes length: this is huge and may not pass into Redis, let's split this off. Some recommend to never get higher than 1,500 bytes within the same command which makes us forced to split this at a very low threshold: 20 seems a safe value here (1,280 average length).
File
- lib/
Redis/ Cache/ Base.php, line 70
Class
- Redis_Cache_Base
- Because those objects will be spawned during boostrap all its configuration must be set in the settings.php file.
Code
const KEY_THRESHOLD = 20;