Questions tagged [lettuce]

Lettuce can stand for two things: * A behavior-driven development (BDD) tool for Python: http://lettuce.it/ * A Redis client for Java: http://lettuce.io

Lettuce can stand for two things:

389 questions
0
votes
1 answer

Lettuce Redis library strong consistency using ReadFrom

In my service I am trying to ensure strong consistency using ReadFrom method of Lettuce client. I am writing and then performing a read. In the client configuration, I have set ReadFrom to SLAVE_PREFFERED. Lettuce documentation says in…
Shubham Jain
  • 392
  • 1
  • 3
  • 15
0
votes
0 answers

io.lettuce.core.RedisException: java.lang.RuntimeException: invalid key or spec in GCM mode

I am using Lettuce library (5.1.6.Release) as Java redis client to create connection with Redis. Below is snippet of code from my SpringBoot application using Java 8. ClientOptions options = ClientOptions.builder() …
Oomph Fortuity
  • 5,710
  • 10
  • 44
  • 89
0
votes
1 answer

Lettuce can't figure out multilevel replication topology

I have a situation where I have got the following setup: Redis A (Master) -> Redis B (Slave of A) -> Redis C (Slave of B). And I'mconfiguring redis template for this topology. When you specify a host of either master (A) or slave(B) in Lettuce…
omjego
  • 373
  • 2
  • 5
  • 15
0
votes
1 answer

Why doesn't Redis call my MessageListener on __keyevent@*__:expired topic events?

I have recently upgraded Spring-Boot to 2.1.4.RELEASE and Spring-Cloud to Greenwich.SR1. My service is running on Java 11. My only dependency to Redis is through spring-boot-starter-data-redis. Although I did the configuration on Redis by setting…
0
votes
1 answer

use spring boot data redis Connect to the redis cluster problem

I used spring boot data redis to connect to the redis cluster, using version 2.1.3 The configuration is as follows: @Bean @Primary public RedisConnectionFactory myLettuceConnectionFactory(GenericObjectPoolConfig poolConfig) { …
hero-zh
  • 45
  • 7
0
votes
1 answer

RedisMessageListenerContainer: SubscriptionTask aborted with exception: ClassCastException

I am using Lettuce 4.5.0 and Spring-data-redis 1.8.0. I am trying to use pub/sub with Redis 4.0 cluster using RedisMessageListenerContainer. But I am getting this error: RedisMessageListenerContainer: SubscriptionTask aborted with exception: …
Ritu S
  • 1
  • 1
0
votes
1 answer

When will lettuce create a connection

As we know ,many threads can use one connection at the same time, but when will lettuce create a new connection ,what‘s the trigger conditions
0
votes
1 answer

Lettuce RedisCache throws java.util.concurrent.RejectedExecutionException Thread limit exceeded replacing blocked worker

I am using Spring Boot with Redis-Cache, with Lettuce default configuration, and receiving the following RejectedExecutionException after the server has been up for a few minutes: org.springframework.data.redis.RedisSystemException: Unknown redis…
apines
  • 1,254
  • 14
  • 36
0
votes
1 answer

Redis Lettuce Publish

I'm working on JDK 1.8 and I'm not able to figure out why "publish" is not working. The Redis "set" command is working for the data. io.lettuce lettuce-core
0
votes
1 answer

Automatic Failover to Promoted Redis Slave using Redis Cluster

Configuration: three redis cluster partitions across three sets of one master and one slave. When a Master goes down, Lettuce immediately detects the outage and begins retrying. However, Lettuce does not detect that the associated slave has promoted…
HarleyDave
  • 77
  • 1
  • 3
0
votes
1 answer

Lettuce Redis client doesn't balance load between slave servers

I'm setting up a master/slave Redis topology using the Lettuce client. My readPreference is slave_preferred and the topology has three slaves and one master. The issue I'm experiencing is that once the StatefulRedisMasterSlaveConnection is…
GCarbajosa
  • 236
  • 1
  • 4
  • 13
0
votes
1 answer

How to configure lettuceConnectionFactory in springBoot version 1.5.15.RELEASE

I was trying to configure LettuceConnectionFactory in spring boot project with 1.5.15.RELEASE version. This is my configuration file: import org.slf4j.Logger; import org.slf4j.LoggerFactory; import…
Balaji S
  • 1
  • 1
  • 2
0
votes
1 answer

timeout time for Redis hmget

RedisFuture>> future = redisStatsConnection.hmget(key, 10); if (!future.await(500, TimeUnit.MILLISECONDS)) { .... } I used Redis with Java and Lettuce. For…
ewrwerwe
  • 45
  • 1
  • 4
0
votes
3 answers

Is there a way to get the list of all disabled redis commands from redis?

I am writing a bot (which contains the list of commands to disable), which monitors redis. It disables commands by doing, for eg (rename-command ZADD "") When I restart my bot, I would want the bot to restart redis, if there is a change in the list…
sumanth232
  • 587
  • 7
  • 20
0
votes
1 answer

Using Lettuce with RedisTemplate throws exceptions

I am trying to figure out why Lettuce is giving me so many problems while I'm running my performance tests comparing it to Jedis. I'm using spring-data-redis 1.8.11.RELEASE and I create custom proxy beans for interfaces to access redis through…
Jeremy Reed
  • 289
  • 7
  • 20