Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Setting size restrictions for value to individual redis keys?

$
0
0

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.


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>