I am trying to implement an RLocalCachedMap in my app. While experimenting I was creating a LocalCachedMap and was setting an evictionPolicy and TTL in the LocalCachedMapOptions. I was expecting that any entry added to the map would expire after the max TTL had passed, but I learned that was not the case. I later learned that such functionality is only available in RedissonPRO which I am not using.
Now I am wondering, if setting the EvictionPolicy and TTL in the LocalCachedMapOptions will actually do anything at all? Does the entry have an expiration time on the Redis server? If so, can I configure Redis to clear out expired entries since Redisson seems to ignore the TTL?
Is there any way to use the RLocalCachedMap and have entries expire after a certain amount of time?