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

Redis: storing key/value pair without expiration time

$
0
0

Can someone explain me how to store key/value pair in redis with unlimited exipire time?

I was trying to find some information at stackoverflow and google and I found nothing.

I'm using redisTemplate and I see there is only expire method there with timeout to specify. I can eventually set the timeout to value like 999999999 days, but I think thats not the best solution.


Viewing all articles
Browse latest Browse all 2204

Trending Articles



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