I am spring caching abstraction annotations to apply caching to my service methods.
Since I am using Redis as the cache store, I want to use the option of expiring cache at a specific time, since that is supported by Redis. expireat command in redis can be used to set expire time at a future time.
I am not sure how I can do that for the keys which are part of my cache when using RedisCache.
I tried to customize RedisCacheManager by creating a bean of it.
I see there is a getNativeCache() method exposed. but I did not find any way to set value for expireat using it.
If there is a way to customize RedisCacheManager so that all keys of a specifc cache use the same time as expiry, please let me know.