skip to Main Content

Spring data redis key expiration

In spring data redis we have two variables. RedisTemplate<Key, Value> redisTemplate; HashOperations<Key, HashKey, HashValue> hashOperations; There is a method expireAt(String key, Date date) inside RedisTemplate. So if I want to set an expiry for a particular hash key I can…

VIEW QUESTION

Store a value in redis store using Nestjs

I have a simple nestjs application, where I have set up a CacheModule using Redis store as follows: import * as redisStore from 'cache-manager-redis-store'; CacheModule.register({ store: redisStore, host: 'redis', port: 6379, }), I would like to use it to store…

VIEW QUESTION
Back To Top
Search