Is it possible to set size restriction for value in redis. For example, I want to store only values in which its size should be less than 2 MB to the redis key. value having size greater than 2 MB should be skipped.
keyName - sampleRedisKey_1
value for sampleRedisKey_1 - some value in which its size < 2 MB
keyName - sampleRedisKey_2
value for sampleRedisKey_2 - some value in which its size > 2 MB
In these two keys, sampleRedisKey_1 should be stored and sampleRedisKey_2 should not be stored.
Thanks in advance.