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

how to send multiple pairs (key , value) to the Xadd command using java?

// I have tried to send the multiple values to the streams using XAdd command. public class LettuceDemo { public static void main(String[] args) { RedisClient redisClient = RedisClient.create("redis://password@localhost:6739/0"); …
mounika
  • 53
  • 5
2
votes
1 answer

Why is the "RedisStreamCommands" interface not found in my project?

I am trying to import the RedisStreamCommands. I was enable to import it, but I can import RedisCommands. I think it needs dependency. I don't know what was that, please help me out. RedisCommands syncCommands =…
mounika
  • 53
  • 5
2
votes
1 answer

Error in LettuceConnectionFactory

Hi I'am trying to use spring-session-data-redis but its throwing an exception, I'am using springboot 2.0.4 and springRedis Data with lettuce (both are latest vesrion). Error starting Tomcat context. Exception:…
eshwar chettri
  • 310
  • 4
  • 16
2
votes
0 answers

Lettuce and spring-data-redis version compatibility

Is there any compatibility matrix avaiable for spring-data-redis and lettuce libraries?
Divs
  • 1,578
  • 2
  • 24
  • 51
2
votes
1 answer

Spring Data Redis - Mass Inserts

I have the following question: I have a Java a service reading from a queue and pushing data to Redis (SADD). We originally used Jedis, but I wanted to give it a try to lettuce. Right now I am facing some performance issues which I believe that is…
Mauro Monti
  • 1,068
  • 2
  • 12
  • 21
2
votes
1 answer

Spring Session 2.0 Redis Lettuce Configuration

I'm attempting to integration Spring Session 2.0 w/ Redis into a spring framework webapp, but I'm getting caught on configuring the LettuceConnectionFactory. I need to configure it to use SSL, and Spring's documentation here shows configuration like…
2
votes
1 answer

Configuring Spring Data Redis with Lettuce for Redis master/slave

Using Lettuce, how do we configure Spring Data Redis running on host x at port 6379 and slave running on the same or different host but at port 6380?
gcpdev-guy
  • 460
  • 1
  • 10
  • 23
2
votes
2 answers

Create Lettuce StatefulRedisConnection for storing string as keys and byte array as value

I have a Spring boot application which connects to a Redis cluster on AWS. I was trying out Lettuce, and want to create a StatefulRedisConnection for storing keys as string, but values as byte array. I tried using the built-in ByteArrayCodec, but it…
drunkenfist
  • 2,958
  • 12
  • 39
  • 73
2
votes
2 answers

How to handle multilingual data in lettuce?

I wrote a *.feature file and step.py with lettuce that work correctly, but when I put Persian data into *.feature file, it stops working. This is my feature file: Feature: Computefactorial In order to play with Lettuce As beginners We'll implement…
ahmadsl
  • 71
  • 9
2
votes
0 answers

An Exception is thrown when we try to read all keys from a Redis cache with scan, using Jedis client

We are using RedisTemplate to get all the keys from a Redis cache. We are using "scan" to get all the keys. We don't use directly Lettuce or Jedis, we let RedisTemplate to do it. When we configure RedisTemplate to use Lettuce, the scan command…
Michael W
  • 21
  • 3
2
votes
0 answers

spring-data-redis 1.7.x and lettuce 4.1.x - java.lang.IncompatibleClassChangeError

Things work just fine when I use lettuce version 3.4.x; Looks like lettuce has changed a class contract when it updated to 4.1.x (from abstract class to an interface) and spring-data-redis 1.7.x is not aware of that. I get the following error:…
Kia
  • 43
  • 8
2
votes
0 answers

Gherkin i18n plugin for Atom text editor

I want to use the Atom Text Editor to manage my feature files defined in Gherkin, I saw that there exist on the one hand the language-gherkin-plugin which works very well with syntax coloring in different colors. I'm more interested to use the…
conFusl
  • 919
  • 6
  • 12
2
votes
1 answer

BDD tests to test Flask REST API

I am a newbie in python and currently learning how to write BDD tests using Lettuce (python). I have a very simple REST API based on Flask framework. I am bit stuck at the point in calling the functions under the app.route. For example my API looks…
divspec
  • 53
  • 1
  • 7
2
votes
1 answer

Printing in lettuce (python)

How to print a string in lettuce? In steps.py just a print "test" doesn't print it on stdout. response = generate_string() print response The above doesn't work in lettuce. I am guessing Lettuce is grabbing all the stdout prints
Pramod Setlur
  • 811
  • 1
  • 15
  • 27
2
votes
1 answer

Can lettuce scenarios have more than one tag?

This is similar to the question how to specify which lettuce scenario to run In the question they give an example of one tag being used per scenario. I was wondering if I can add on more tags, like in TestNG you can add on multiple groups.