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
4
votes
1 answer

How to call INCRBY and EXPIRE most efficiently in Redis

For a collection of aggregate objects that may or may not already exist in Redis, I'd like to call INCRBY and EXPIRE on them. From my reading, it seems using either MULTI or EVAL is the way to go. Following the INCRBY and EXPIRE operations on the…
digitalsanctum
  • 3,261
  • 4
  • 29
  • 43
4
votes
1 answer

Redis Lettuce java library notification on element expire

Can I manage redis notifications with Lettuce? I can't find any example or doc on it. I simply need to have some notification/callback in my java code when elements expire in Redis. Let me put an example... I'm sorry, reading the Lettuce doc won't…
icordoba
  • 1,834
  • 2
  • 33
  • 60
4
votes
2 answers

How to push complex java objects to Redis using lettuce 4.2 Cluster client

I have a complex java object with all types of data types. We need to push this object to Redis cache with string as key and value is this object. We have Redis cluster of 6 machines. How to push this object through java code using lettuce cluster…
4
votes
1 answer

How to use client consistent hashing with Lettuce Redis client

I'm trying to find references how to configure and use Lettuce Redis client with client-side consistent hashing. This approach for a sharding is implemented in ShardedJedis from Jedis client and described in the Redis partitioning…
Dmitry Spikhalskiy
  • 5,379
  • 1
  • 26
  • 40
4
votes
2 answers

Lettuce and Django 1.55+ getting ImportError: cannot import name WSGIServerException

Just tried integrating Lettuce into my django installation and getting the following error: Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File…
James Lin
  • 25,028
  • 36
  • 133
  • 233
4
votes
2 answers

How can I interact with this modal dialog using Webdriver & Python?

All I want is to close a modal dialog, ideally by doing the following: browser.find_element_by_link_text("OK").click() Gives NoSuchElementException: Message: u'The element could not be found' for the OK link text. Same for the xpath when I do…
Wilco van Esch
  • 457
  • 1
  • 7
  • 17
3
votes
1 answer

Redis Lettuce Connection and BLPOP

Lettuce is using a single shared native connection under the hood. Is it safe to use BLPOP blocking command with this design - will it block this shared native connection and affect other clients? I didn't find a concrete explanatory description for…
oceansize
  • 623
  • 3
  • 16
3
votes
0 answers

Spring Boot + Lettuce + Redis-Sentinel without own beans?

In our Spring Boot-App, we are using Spring Data and Spring Cache together with Lettuce to connect to a REDIS-Cluster. We are currently switching to a Sentinel-Connection-setup. We are asking ourselves if there is another way to setup…
Sidekick.John
  • 183
  • 3
  • 14
3
votes
0 answers

how to override cluster nodes in lettuce with nginx proxy urls

I am using lettuce driver for my elastic cache connections, my elastic cache is cluster enabled. Due to some network restriction, my connections need to be behind a proxy so I am using an Nginx stream proxy below is my Nginx conf stream { …
scoder
  • 2,451
  • 4
  • 30
  • 70
3
votes
0 answers

How to choose Multiple Redis Connection based on configuration in Lettuce - Standalone, RedisCluster and Sentinel.?

I have a requirement of supporting the multiple redis connections. The requirement is Why Can't we have a Generic Connection Object like Connection instead of having the StatefulRedisConnection and StatefulRedisClusterConnection ? Why we have…
3
votes
0 answers

Redis lettuce setup for using asyncRedisCommands on redis sentinel

My setup as follows: I am running this setup on the spring application. I am using the lettuce module's RedisAsyncCommands. I was able to run it using a stand-alone Redis config. When I try to run it using the sentinel mode it's getting stuck…
sharath
  • 33
  • 5
3
votes
0 answers

RedisStaticMasterReplicaConfiguration does not support Pub/Sub because of missing Pub/Sub message propagation across individual servers

i want to apply spring-session-data-redis to my spring boot project. but printed log Connection failure occurred. Restarting subscription task after 5000 ms exception message is Pub/Sub connections not supported with Master/Replica configurations my…
3
votes
1 answer

Redis connection pool configured using spring-data-redis but not working correctly

What I'm using: spring-data-redis.1.7.0.RELEASE Lettuce.3.5.0.Final I configured Spring beans related to Redis as follows: @Bean public LettucePool lettucePool() { GenericObjectPoolConfig poolConfig = new GenericObjectPoolConfig(); …
ParkCheolu
  • 1,175
  • 2
  • 14
  • 30
3
votes
0 answers

Somtimes , embedded-redis(lettuce) try to reconnect constantly in test

I have written redis test cases with embedded redis and its worked fine without any issues in local. But when I moved to CI / CD pipeline with jenkins or gitlab. sometime, i am facing connection refused…
Jun
  • 41
  • 2
3
votes
2 answers

mTLS/TLS Redis 6 Issues Java

Currently I am running Redis 6 with ACL and mTLS with a C# client just fine. I am trying to update our Java side to also use ACL and mTLS but have been running into issues. I am primarily focused on mTLS at the moment and have not been getting…
etherrien
  • 35
  • 2
  • 6