skip to Main Content

Redis StackExchange LuaScripts with parameters

I'm trying to use the following Lua script using C# StackExchange library: private const string LuaScriptToExecute = @" local current current = redis.call(""incr"", KEYS[1]) if current == 1 then redis.call(""expire"", KEYS[1], KEYS[2]) return 1 else return current end Whenever i'm…

VIEW QUESTION

Spring-Boot 2.7 Redis PUB/SUB fails startup on missing Redis connection

I have this configuration for my pub/sub implementation: @Bean public RedisMessageListenerContainer container(LettuceConnectionFactory connectionFactory, MessageListenerAdapter listenerAdapter) { RedisMessageListenerContainer container = new RedisMessageListenerContainer(); container.setConnectionFactory(connectionFactory); container.addMessageListener(listenerAdapter, new ChannelTopic(publishChannel)); return container; } @Bean public MessageListenerAdapter listenerAdapter(RedisReceiver receiver) { return new MessageListenerAdapter(receiver, "receiveMessage"); } @Bean…

VIEW QUESTION
Back To Top
Search