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

Jedis and Lettuce async abilities

I am using redis with Akka so I need no blocking calls. Lettuce has async-future call built into it. But Jedis is the recommended client by Redis. Can someone tell me if I am using both of them the right way. If so which one is better. JEDIS I am…
Mark
  • 833
  • 1
  • 9
  • 27
22
votes
1 answer

Pipeline Redis commands with Reactive Lettuce

I'm using spring boot webflux + project reactor + lettuce for connecting and querying Redis in a non blocking way. I have configured the ReactiveRedisTemplate with LettuceConnectionFactory. The spring documentation states that the only way to use…
17
votes
1 answer

Redis client Lettuce Master/Slave configuration for AWS Elasticache

I have been using Lettuce as a Redis client to talk to AWS Elasticache. The specific configuration that I am currently using is the Static Master/Slave with predefined node addresses. Recently, the primary node took a tumble kicking off a failover…
ideaz
  • 475
  • 6
  • 15
11
votes
0 answers

Picking between Redisson and Lettuce for Redis with clustered-setup

I am considering Lettuce and Redisson java clients for use in my application server (to connect to Redis). I haven't been able to find a proper comparison of the two from people who have tried them both or one of them in a single common place. The…
Shabirmean
  • 2,341
  • 4
  • 21
  • 34
10
votes
2 answers

Python3 Lettuce throws SyntaxError

I am trying to use lettuce to write some simple Unit tests. (More specifically I am following this tutorial: https://semaphoreci.com/community/tutorials/bdd-testing-a-restful-web-application-in-python) I just installed lettuce with: $ pip3 install…
Pani
  • 1,317
  • 1
  • 14
  • 20
9
votes
1 answer

Reactive Redis (Lettuce) always publishing to single thread

Im using Spring Webflux (with spring-reactor-netty) 2.1.0.RC1 and Lettuce 5.1.1.RELEASE. When I invoke any Redis operation using the Reactive Lettuce API the execution always switches to the same individual thread (lettuce-nioEventLoop-4-1). That is…
Champz
  • 95
  • 1
  • 6
9
votes
1 answer

Too many RedisCommandTimeoutException in lettuce

We are facing this specific issue using lettuce redis library. We are receiving too many RedisCommandTimeoutException. We have set a timeout of 2 secs in redis-cli and 10 ms in redis slow logs. While nothing gets logged in slowlogs our application…
Vicky Desai
  • 223
  • 1
  • 3
  • 9
8
votes
3 answers

Lettuce RedisCodec For Numbers

Using Lettuce 5 as a Redis client for the first time, I'm finding it rather confusing to simply create a RedisCommands for getting/setting Redis values as a Long. It's a little unclear to me how I can accomplish this. From what I…
user1491636
  • 2,355
  • 11
  • 44
  • 71
8
votes
1 answer

Redis client Lettuce command timeout versus socket timeout

We have defined Lettuce client connection factory to be able to connect to Redis defining custom socket and command timeout: @Bean LettuceConnectionFactory lettuceConnectionFactory() { final SocketOptions socketOptions =…
CRISTIAN ROMERO MATESANZ
  • 1,502
  • 3
  • 14
  • 26
8
votes
1 answer

spring data redis with lettuce connection pool configuration

We are upgrading from spring boot version 1.5.2 to 2.0.0. I have found that spring data redis is using lettuce as default and requires no connection pool management and uses only single underlying tcp connection. We also use ConcurrentMetadatStore…
7
votes
7 answers

Is there a pythonic way of knowing when the first and last loop in a for is being passed through?

I have a template in which I placed, let's say 5 forms, but all disabled to be posted except for the first one. The next form can only be filled if I click a button that enables it first. I'm looking for a way to implement a Django-like forloop.last…
Gerard
  • 9,088
  • 8
  • 37
  • 52
7
votes
2 answers

Lettuce can't connect to Redis Cluster using SSL but can connect to same Redis server using SSL by treating it as a Standalone node

I've an Azure Cache for Redis - Premium and Cluster enabled. I've been trying to connect to that Redis using spring-boot-starter-data-redis (spring boot version: 2.3.4.RELEASE, Java version: 11) and using lettuce client but Lettuce is throwing the…
Shubham
  • 2,847
  • 4
  • 24
  • 37
7
votes
4 answers

How to continuosly listen on redis stream using lettuce java library

I am trying to listen on a redis stream and process the message as and when they arrive. I am using async command and I expect the message to be pushed instead of being pulled. So I don't think a while loop is required. But the following code seems…
7
votes
5 answers

SpringBoot Redis remote host

I'm making an application that uses Spring Boot, MySQL and Redis on the Back End and Angular on the Front End. I want to deploy it to Heroku so I could use my front end with it but I just can't seem to configure the remote URL for Redis. I have the…
Sarthak Sachdeva
  • 81
  • 1
  • 1
  • 4
7
votes
1 answer

How to increment a redis sorted set's value

TL;DR I am looking for a way to store, increment and retrieve ranges of event counts by minute. I am looking for a solution to creating an incrementing timeseries in redis. I am looking to store counts to the minute. My goal is to be able to look up…
Chris Hinshaw
  • 6,967
  • 2
  • 39
  • 65
1
2 3
25 26