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

How to use different spring module (spring-data-redis) version in specific spring boot version

I have a Spring boot project - its parent is spring-boot-starter-parent:2.1.9.RELEASE. I want to use the spring-data-redis with 2.2.0.RELEASE version (not the spring-boot-starter-data-redis because this does not support redis-streams). Also I use…
vvra
  • 2,832
  • 5
  • 38
  • 82
3
votes
1 answer

Spring Auto Configuration prioritization between Lettuce or Jedis

I want to use Lettuce as a Redis Client, which is the default dependency for spring-boot-starter-data-redis-reactive. However I am inheriting Jedis as a dependency from another component written as pure Java code (no Spring). This is resulting in a…
3
votes
1 answer

Where can close a Lettuce Redis connection in my Spring Boot application?

I have initialized the Spring Boot app with Lettuce(io.lettuce.core.api) configuration like this @Configuration class RedisConfiguration { @Value("${spring.redis.host}") private String redisHostname; @Value("${spring.redis.port}") …
Abhii
  • 295
  • 2
  • 6
  • 18
3
votes
1 answer

How to clean redis cache through java program?

I have spring boot project. I am using redis as cache manager. I want to clear redis cache with java program. I want to call one api and it will clear my cache. I already know about redis-cli flushdb command. I am not expecting command line code.…
S Khandelwal
  • 199
  • 2
  • 13
3
votes
1 answer

Spring Data REDIS - hash keys with weird prefixes, and HSCAN not returning results correctly

I am using spring boot (irrelevant) with spring-data-redis:jar:2.0.9, which uses lettuce to connect to my REDIS. I am using a hash structure that contains around 100 keys. Under those keys I put some objects which type is also irrelevant: private…
maslan
  • 2,078
  • 16
  • 34
3
votes
0 answers

StackOverflow with Lettuce using Spring Boot 2

StackOverflow occurs when the app is started on AWS ECS and connects to AWS Elasticache Redis cluster. On local environment everything works fine. Also if Redis client is switched to Jedis the problem also does not occurs. The app is started in…
Tomek Zaremba
  • 353
  • 1
  • 4
  • 7
3
votes
1 answer

How to pass variable to lua script from java? ( io.lettuce.core )

I have a lua script like this that does an hgetall command on a remote redis cluster: String shaFindAccount = syncCommands.scriptLoad("local hgetAllKeys = function(key) \n" + "local acc =…
dk40149
  • 99
  • 1
  • 10
3
votes
1 answer

Cant connect to local Redis cluster with Lettuce

I'm running a Redis local cluster with Docker like this docker run --env "IP=0.0.0.0" -p 7000-7007:7000-7007 -p 5000-5002:5000-5002 -p 6379:6379 grokzen/redis-cluster:5.0.3 I can't send commands when connected via telnet like telnet localhost…
Jorge Lavín
  • 937
  • 8
  • 22
3
votes
1 answer

Redis Spring data with Lettuce: com.lambdaworks.redis.RedisCommandExecutionException: MOVED error

I'm using AWS ElastiCache (Redis) in cluster mode. I'm having two implementations to connect to ElastiCache. One of the implementations is directly using the native Lettuce driver and other using Spring data with Lettuce as underneath driver. AWS…
Pankaj
  • 3,512
  • 16
  • 49
  • 83
3
votes
2 answers

Lettuce BDD : How to refer scenarios?

I am using Lettuce BDD framework for python, and I am wondering how to run one scenario from within another scenario.. For example, say there is a "registration" scenario that establishes some pre-conditions which will be used by a subsequent…
jeffreyveon
  • 13,400
  • 18
  • 79
  • 129
3
votes
2 answers

Configuring Spring Data Redis with Lettuce for ElastiCache Master/Slave

I have a Elasticache setup with one master and two slaves. I am still not sure how to pass in a list of master slave RedisURIs to construct a StatefulRedisMasterSlaveConnection for LettuceConnectionFactory. I only see support for…
HLiu
  • 33
  • 1
  • 4
3
votes
1 answer

Composing multiple reactive Publisher/Flux/Mono objects into a blocking request

I'm very new to the reactive world and struggling to understand how to accomplish a task. I'm working on a legacy project where I must implement an interface that has many methods to query various objects from redis. Sometimes the queries are as…
Bal
  • 2,027
  • 4
  • 25
  • 51
3
votes
1 answer

Error adding 'import lettuce' on PyCharm

I have a problem with Python and lettuce. I already install the pip and lettuce in Python 2.7, and I'm trying to create a .features file and a .py file for the steps. The problem is that when I put the line from lettuce import * I have an error that…
SomeAnonymousPerson
  • 3,173
  • 1
  • 21
  • 22
3
votes
1 answer

How to skip a scenario in Lettuce?

I'm using Lettuce to do BDD testing on my Django website. I'm also using CircleCI do some continuous integration. I have a scenario that fails on CircleCI every time, so I'd like to tell CircleCI to skip it. Something like: @skip_circle Scenario:…
Jack Slingerland
  • 2,651
  • 5
  • 34
  • 56
3
votes
2 answers

pass in multiple arguments in lettuce test step

generally each lettuce test step takes 1 parameter, is there a way to pass in multiple arguments in a single step ? like, can I have this: @step('I have the number (\d+) and character (\w+)') def have_the_number(step, number, character ): …
zinking
  • 5,561
  • 5
  • 49
  • 81