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
3
votes
0 answers

lettuce: run code before scenario outline

I am using lettuce 0.1.35 with Python 2.6 and I noticed that when I define a scenario outline, the code defined with an @lettuce.before.each_scenario decorator is not run before each instance of the scenario outline - when I repeat each scenario…
Weier
  • 1,339
  • 1
  • 10
  • 20
2
votes
1 answer

Using lettuce, how can I verify that an email sent from a Django web application has the correct contents?

I have a Django-based web application that is required to send a confirmation email to the user on an attempt to change the registered email address. The functionality has been implemented, but the lettuce test intended to verify the contents of the…
Richard J Foster
  • 4,278
  • 2
  • 32
  • 41
2
votes
1 answer

Synchronize multiple instances of Spring Cache with a Redis lock

I'm building a Spring Boot application that uses Spring Cache with a Redis backing store and needs to synchronize the updates made to the cache. The caching is not made on the fly, but by an scheduled process that updates the cache periodically. The…
Fábio
  • 3,291
  • 5
  • 36
  • 49
2
votes
1 answer

calling a Redis function(loaded Lua script) using Lettuce library

I am using Java, Spring-Boot, Redis 7.0.4, and lettuce 6.2.0.RELEASE. I wrote a Lua script as below: #!lua name = updateRegisterUserJobAndForwardMsg function updateRegisterUserJobAndForwardMsg (KEYS, ARGV) local jobsKey = KEYS[1] local inboxKey…
Sobhan
  • 1,280
  • 1
  • 18
  • 31
2
votes
0 answers

Listening to a queue in redis with spring-boot application and lettuce library

I have developed different services based on Spring-boot, Spring-cloud, and microservices architecture, also I am using the following dependency as Redis-client: implementation 'io.lettuce:lettuce-core:6.1.5.RELEASE' I have defined my RedisBean in…
Sobhan
  • 1,280
  • 1
  • 18
  • 31
2
votes
1 answer

lettuce can't connect to docker redis

I create a redis cluster with docker-compose and when I try to connect the cluster from my local machine with a java app, which also docker is located in, but lettuce gets timeout while jedis connects to cluster. Lettuce connects to main servers…
2
votes
1 answer

Spring Boot app cannot connect to Redis Replica in Docker

I am experiencing a weird issue with Redis connectivity in the Docker. I have a simple Spring Boot application with a Master-Replica configuration. As well as docker-compose config which I use to start Redis Master and Redis Replica. If I start…
endryha
  • 7,166
  • 8
  • 40
  • 64
2
votes
0 answers

When is it safe to retry Redis command on error when using Lettuce?

I'm using Lettuce Redis client for JVM to build a queue backed by a Redis List. Ideally it would behave like an in-memory queue but since the network interaction is involved this is not possible. There is a section on error handling in Lettuce docs…
epsylon
  • 357
  • 3
  • 13
2
votes
0 answers

java.lang.UnsatisfiedLinkError: no netty-transport-native-epoll in java.library.path

I'm trying to customize the keep-alive settings on a channel created by Lettuce Redis client. I have registered a NettyCustomizer, and within the NettyCustomizer#afterBootstrapInitialized method I am doing the following…
user1571307
  • 335
  • 1
  • 2
  • 12
2
votes
1 answer

Will lettuce resend AUTH after reconnecting?

Our redis server has a password. My application encountered "NOAUTH Authentication required" errors. There were reconnecting before those errors. I'm wondering if lettuce resend AUTH after reconnecting. If so, is there a way to insert…
Bewang
  • 453
  • 3
  • 18
2
votes
3 answers

NOAUTH Authentication required spring-boot-data-redis+Realease Lettuce+Redis sentinel

when I restart redis cause java.util.concurrent.ExecutionException: io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required. Why is this a problem use version like this @Configuration public class RedisConfig { …
yaowei wang
  • 21
  • 1
  • 3
2
votes
1 answer

Lettuce timeout on command level

I was using lettuce client as a Redis cluster client because it supports Cluster Redis well. A practical problem I have met is when creating a client or during topological refresh, lettuce will send out "info" command, which usually takes longer…
Qiao Feng
  • 21
  • 2
2
votes
1 answer

Lettuce 6.0.1.RELEASE deprecated .withPassword

With Earlier version 5.1.6.RELEASE , withPassword works perfectly. How ever with latest version it shows warning that withPassword is deprecated.It takes Array[Char] or charSequence . @transient lazy val redisClient = RedisClient.create( …
CoolGoose
  • 140
  • 10
2
votes
0 answers

Is there any way to use same epoll thread for spring webflux and lettuce

Spring webflux and lettuce both use netty. As a result, both create epoll thread. We know, to minimize thread context switch cost it's better to create the available number of processor's equivalent epoll thread. But when we are using those in the…
A M S Rejuan
  • 447
  • 6
  • 12
2
votes
1 answer

springboot Unboxing of redisTemplate. may produce NullPointerException

I use springboot(2.3.1) and Lettuce in project Filter @Slf4j @WebFilter(filterName = "requestWrapperFilter", urlPatterns = {"/*"}) public class RequestWrapperFilter implements Filter { @Resource private RedisTemplate redisTemplate; …