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

Issue when trying to autowire ClientResources

I'm trying to autowire the ClientResources as it is showing below: @Bean(destroyMethod = "shutdown") public ClientResources clientResources() { final ClientResources res = DefaultClientResources.create(); return res; } But I'm…
yimson
  • 49
  • 2
  • 14
0
votes
1 answer

killing or stopping the python script in lettuce

I have a python script it sends data permanently and after seeing its output I want to stop or kill the python script .in lettuce I couldn't manage to kill python script.Any idea for this? I tried that: os.system('pgrep -f sample.py') …
laura
  • 357
  • 3
  • 16
0
votes
1 answer

mset over 400,000 map entries in redis

I'm using java with lettuce redis client. I have a local Redis instance and I'm reading a file and put 400,000 entries into a hash map. But after the end of the mset process there were no keys/values added into the redis store. I realized the…
codebot
  • 2,540
  • 3
  • 38
  • 89
0
votes
1 answer

@Cacheput not working for updates only inserts

Below is my code snippet. @cacheput only inserts data onto redis on the first call. Does not update the value the second time save function is called. CacheManager in reference is a RedisCacheManager. @CachePut(cacheNames = "User", key =…
rahul
  • 71
  • 1
  • 1
  • 7
0
votes
1 answer

Unit testing a void method with Redis async command in java

I'm trying to write a unit test for the following function. responseHandler and ErrorHandler are both methods that are passes using the Command Pattern and are used to continue the program's flow. futureCommand is a lettuce object (Redis…
gshlomig
  • 21
  • 1
0
votes
1 answer

redis lua - eval returns wrong value when dealing with Long.MAX_VALUE

127.0.0.1:7501> eval "return {1,2,9223372036854775807}" 0 1) (integer) 1 2) (integer) 2 3) (integer) -9223372036854775808 Please help this weird behaviour. I knew that lua can only represent large number beyond 10^15 , by losing some…
sumanth232
  • 587
  • 7
  • 20
0
votes
1 answer

Using lettuce 4.4 with play framework 2.5.5

I am trying to use lettuce version 4.4 as a Redis client library in a play framework 2.5.5 project. Looks like there are some compatibility issues with the netty versions used by play 2.5.5 and lettuce 4.4. I am seeing a…
Ajmal Ahammed
  • 145
  • 1
  • 11
0
votes
1 answer

Redis - Max Subscriptions/Connections?

I'm designing a Java Spring based real-time notifications system & chat system using Redis & WebSockets(with sockJS and STOMP). Requirement is for each user to subscribe to a unique channel (channel name will be user id). This is because…
user1102532
  • 495
  • 6
  • 16
0
votes
1 answer

How do you initialize the MapScanCursor in Lettuce Redis client library?

I am trying to do an HSCAN using Lettuce's synchronous commands. The problem is that I can't figure out the correct way of initializing the MapScanCursor. I've had no success with the constructor, and MapScanCursor.INITIAL gives type ScanCursor (no…
0
votes
0 answers

How to use global variable from one scenario in other. Python, Webdriver, lettuce

I'm using WebDriiver, lettuce and python for testing. In first scenario I verifay, that user can create anaccount. For user name I use an e-mail generaror with timestamp. the lettuce step is: Then input text "NEW_EMAIL" to text field with ID…
0
votes
2 answers

What's the best way to process HTML in Python?

I'm trying to write some tests with Lettuce, started using lxml but found kinda complicated to integrate it with Django in the same way that Webrat integrates with Rails.
igorgue
  • 17,884
  • 13
  • 37
  • 54
0
votes
1 answer

How to set up relations between features and steps in lettuce?

I'm using lettuce BDD framework for python. In examples all scenarios use methods from only one *.py file - steps.py How to set up relations between *.feature and its *.py file? I need these feature files: auth.feature pay.feature and these py…
hudrogen
  • 342
  • 1
  • 3
  • 13
0
votes
2 answers

Django - Lettuce - Selenium

I'm trying to run default project with the above stack, to be able to run front-end tests on my big project. Which uses a much bigger stack. (I've been trying to integrate it for that first but after multiple failures I tried to recreate it in a…
Tusk
  • 703
  • 11
  • 21
0
votes
1 answer

How can i delete element in set Redis?

how can i delete element(s) from sorted set generated from adding location using GEOADD for example: GEOADD test -0.12455 51.5007 "Big Ben" -0.12520 51.50115 "Westminster Station" -0.11358 51.50482 "BFI IMAX" i want to delete "Westminster Station"…
Samy Louize Hanna
  • 821
  • 2
  • 8
  • 15
0
votes
1 answer

Python function (lettuce step) always retrurn True

I am working with selenium and lettuce for testing in python. I have this step for counting employee table rows @step('I count employee table rows') def i_count_emp_table_rows(step): try: elems =…
Mahammad Adil Azeem
  • 9,112
  • 13
  • 57
  • 84