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
2
votes
2 answers

Spring data redis zadd command missed nx|xx|incr options

Lettuce supported zadd's NX|XX|CH|INCR options on 2015 link. But I can't find any thing support this in Lettuce's wrapper Spring data Redis (version:2.1.5). It seem that the only two zadd methods that DefaultZSetOperations provide can't let me use…
Kevin
  • 21
  • 4
2
votes
1 answer

Spring data Redis Cluster Lettuce Connection Settings

We are using spring data redis with lettuce , lettuce uses single connection but in web application it is better to use connection pool as per my assumption. Below is the code for java config @Configuration @ComponentScan(basePackages = {…
VIckyb
  • 161
  • 1
  • 9
2
votes
1 answer

How can I stop redis memory usage increasing with connection count

We are running redis via elasticache on AWS and are seeing memory usage spike when running a large number of lambda functions which just read. Here is some example output from redis-cli --stat ------- data ------ --------------------- load…
Jon Freedman
  • 9,469
  • 4
  • 39
  • 58
2
votes
1 answer

How to ensure the expiry of a stream data structure in redis is set once only?

I have a function that use lettuce to talk to a redis cluster. In this function, I insert data into a stream data structure. import io.lettuce.core.cluster.SlotHash; ... public void addData(Map dataMap) { var sync =…
Anthony Kong
  • 37,791
  • 46
  • 172
  • 304
2
votes
2 answers

One Lettuce Redis connection per servlet?

In a servlet, should Lettuce Redis connections be created in init() and shutdown in destroy() or should a connection be created for every request (in doPost or doGet?) I am using sync RedisCommands (connection.sync()) Lettuce states: Lettuce is…
Heng Ye
  • 341
  • 4
  • 17
2
votes
1 answer

How to pass own executors to the redis lettuce library?

I have below code to get the data from Redis asynchronously. By default get() call in lettuce library uses nio-event thread pool. Code 1: StatefulRedisConnection connection = redisClient.connect(); RedisAsyncCommands
Ashok
  • 461
  • 2
  • 5
  • 23
2
votes
0 answers

Spring Data Redis - Lettuce Connection Pool Setting

Trying to setup Lettuce Connection Pool in spring data redis environment. Below is the code @Bean LettuceConnectionFactory redisConnectionFactory(GenericObjectPoolConfig genericObjectPoolConfig) { RedisStandaloneConfiguration…
BharathyKannan
  • 148
  • 2
  • 3
  • 19
2
votes
1 answer

How to bypass Redis session on Spring Boot application on Redis connection failure?

I have implemented Redis session management using LettuceConnectionFactory on my Spring Boot java application by following some of the sample applications out there and the Spring documentation. It works fine when it can connect to the Redis…
sof_rebel
  • 31
  • 5
2
votes
1 answer

How can I share the same Event Loop from VertX in Lettuce-io

Is there a way to share the same EventLoop from VertX when creating a Lettuce-io Redis Client?
R2bits
  • 21
  • 1
2
votes
0 answers

How to get lastest data from redis at real time?

I want to implement real-time applications with Redis. There are data that are pushed in real time on Redis, like the source code below that used lettuce library. RedisClient redisClient = RedisClient.create(uri); StatefulRedisConnection
aruighrha
  • 69
  • 6
2
votes
0 answers

Best practices for managing Netty resources in WebFlux application with several Netty clients

Is there any best practices about managing Netty resources (EventExecutorGroup) in a reactive Application having several client libraries which are using Netty? Redis lettuce documentation states A vast part of Client resources consists of thread…
Roman M.
  • 45
  • 1
  • 7
2
votes
0 answers

In Lettuce I'm finding async mget on a redis cluster to be considerably slower than pipelining

I'm writing some benchmarks for a new project and I'm running into an issue where the lettuce(version 5.1.3) and I'm finding the code below which uses mget: @Override public Set getKeys(final Set keySet) { try { return…
user439407
  • 1,666
  • 2
  • 19
  • 40
2
votes
2 answers

Resource leak detected when using spring-data-redis on cloud foundry

We develop a spring-boot service, which offers a rest api (spring-webflux) and sends data via RabbitMQ (spring-rabbit). The service is deployed on cloud foundry and we use spring-boot in version 2.1.4. We added spring-boot-starter-data-redis to use…
2
votes
0 answers

Spring boot StringRedisTemplate error (Redis command timed out) using Lettuce

When I used spring-boot + jedis + pipeline add 10000 data was normal. But when I used spring-boot + Lettuce + pipeline add 10000 I encountered an error. CommandTimeout set 5 secs. Redis Config: final LettuceClientConfiguration…
latteyan
  • 31
  • 1
  • 4
2
votes
1 answer

Using RPUSH with TTL in a single command in Redis

I'm trying to push an entry in a list in Redis and also want to update the TTL of the list every time a new entry comes in. I can do that my simple calling the EXPIRE "my-list" ttl using Redis. Since my application is receiving heavy traffic, I want…
Sagar Verma
  • 25
  • 1
  • 4