Hello All,
I am pretty new to REDIS. As per the official documentation(https://redis.io/topics/data-types-intro#redis-keys), we see that: - The maximum allowed key size is 512 MB.
I have seen some discussion around increasing the limit but didn't quite understand if we had a definite answer.
Comment From: kpbird
Hello,
512 MB key size is more than sufficient. Do you have any specific use case where you need a key size more than 512 MB?
Comment From: soloestoy
Hi, this is already supported since 5.0 using configuration proto-max-bulk-len, see more details in redis.conf
Comment From: oranagra
@soloestoy i don't think that's right (yet?).
proto-max-bulk-len allows bigger protocol bulks, but that's mainly helping big RESTORE commands (ones carrying a huge hash or list).
it does indeed enables you to create big strings with SET / HSET, but there are some places with extra checks like SETRANGE and APPEND that use this:
static int checkStringLength(client *c, long long size) {
if (size > 512*1024*1024) {
Comment From: soloestoy
@oranagra sorry I missed it, seems we need to add a new configuration.
BTW, this remind me about #4633