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

Add custom object list to Redis

I am a newbie to Redis. I want to store and search over a list of custom objects in Redis cache. custom object has 4 attribute configKey configScope valueType configValue Sample custom…
TeamZ
  • 343
  • 6
  • 15
0
votes
1 answer

What is the right way to read a zset in a redis cluster with an open-ended max bound with lettuce?

I have used ZADD command to insert a bunch of IDs with their corresponding scores into a redis instance. The score is basically a timestamp at which the ZADD is called. Now I want to retrieve a list of IDs whose score is bigger than the timestamp of…
Anthony Kong
  • 37,791
  • 46
  • 172
  • 304
0
votes
1 answer

Retrieving and deleting a key in single call from Redis server

For a use case, I want to delete a key upon retrieval from Redis server in a single call i.e. key is a one time use. I'm using lettuce library to connect to redis server. Is there any specific configuration available in redis side or any specific…
Ashok
  • 461
  • 2
  • 5
  • 23
0
votes
1 answer

Micronaut Redis Lettuce Cache Conditionally Enable

For Micronaut Redis, is there a way to toggle whether or not caching is enabled using configuration properties? I see some other available caches have the ability to be enabled/disabled via configuration properties such as Ehcache.
0
votes
1 answer

What is use case of thenAcceptAsync in lettuce

What is use case of thenAcceptAsync? There is an explanation on https://lettuce.io/core/release/reference/#asynchronous-api, but I do not get it. I thought thenAccept is already handling the event async and it is not blocking the main thread. In…
Haibin Liu
  • 610
  • 1
  • 7
  • 18
0
votes
1 answer

Converting generic redis code to Azure Cache for Redis

I have the following Spring Session code: @Bean public LettuceConnectionFactory connectionFactory() { String hostName = AcmeProperty.getProperty("spring.redis.host", "localhost"); int port =…
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
0
votes
0 answers

How does Java CompletableFuture timeout behave with GC?

In our application we are using Java futures to asynchronously retrieve data from an external Redis instance. The Redis library we use using is Lettuce which appears to be using CompletableFuture under-the-hood for its async commands. Ideally we…
curtisjk
  • 1
  • 2
0
votes
1 answer

Redis Sentinel Authentication using Lettuce+SpringDataRedis

I have the redis sentinels configured in my local running at 2 different ports 10001 and 10002. I have the sentinel authentication setup for the same. Redis sentinel configuration port 10001 bind 127.0.0.1 requirepass password sentinel myid…
Saravana6788
  • 157
  • 1
  • 4
  • 14
0
votes
1 answer

How does Lettuce dynamic command interface work with Redis modules?

Trying to send RedisTimeSeries commands thru Lettuce (Java) to Redis. It worked for simple commands such as TS.Create but I couldn't get slightly more complicated commands to work (such TS.ADD which takes key, score, value as args) or TS.Range…
0
votes
1 answer

How can i find the list of nodes in a redis cluster?

I have created a redis cluster client as follows: // create uri RedisURI redisURI = RedisClusterURIUtil.toRedisURI(URI.create("redis://localhost:6379")); RedisClusterClient redisClusterClient =…
manav Jain
  • 71
  • 1
  • 10
0
votes
1 answer

Getting java.net.UnknownHostException: hostname: Name or service not known while using spring-data-redis-starter

I am trying to connect to Redis in cluster mode by using spring-boot-starter-data-redis and lettuce library and getting below exception, 2019-08-21 00:55:42.695 WARN 75 --- [ioEventLoop-6-1] i.l.c.c.topology.ClusterTopologyRefresh : Unable…
user2206366
  • 461
  • 3
  • 6
  • 17
0
votes
1 answer

RedisTemplate executing get vs multiget performance difference

In RedisTemplate i understand that executing get multiple times will end up making multiple network calls to the redis cluster and then will retrieve the result. Will the same happen in case of multiget or the multiget will pass all the keys at once…
ritesh malav
  • 11
  • 1
  • 6
0
votes
0 answers

Connecting to Redis host using Lettuce driver and TLS SNI

I need to connect to Redis with SSL. I have a host and port number but also a servername for TLS SNI. The openssl equivalent is : openssl s_client [-connect host:port] [-servername name]. I couldn't find in Lettuce wiki the option for SNI. Can…
Andrei
  • 139
  • 5
0
votes
1 answer

Is it possible to pass to lettuce redis library MasterSlave connection only slaves uris?

my aim is to add only slaves URIs, because master is not available in my case. But lettuce library returns io.lettuce.core.RedisException: Master is currently unknown: [RedisMasterSlaveNode [redisURI=RedisURI [host='127.0.0.1', port=6382],…
0
votes
0 answers

Lettuce 5.1.1.RELEASE 60 second server idle Azure PubSub disconnected

Update: From the below note it appears that Azure Redis has a 60 second idle time for its configuration. The connectionwatchdog in redis is seeing the connection and reporting correctly the disconnect about every 2 minutes which makes sense i…