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

Redis expiry notification matching a specific key pattern

$
0
0

Is there a way to implement a key expiry logic matching a specific pattern in Redis with Spring?

Here is what I have accomplished until now.

RedisMessageListenerContainer listenerContainer = new RedisMessageListenerContainer();listenerContainer.setConnectionFactory(connectionFactory);listenerContainer.setErrorHandler(new ExpirationListenerErrorHandler());listenerContainer.addMessageListener(keyExpiredListener, new PatternTopic("__key*__:ex*"));

I am now wondering if I can play a little bit with __key*__:ex*


Viewing all articles
Browse latest Browse all 2203

Trending Articles



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