Redis: How to parse a list result

I think you’re bumping into semantics which are similar to the distinction between list.append() and list.extend(). I know that this works for me: myredis.lpush(‘foo’, *[1,2,3,4]) … note the * (map-over) operator prefixing the list!

Jedis and Lettuce async abilities

There is no one answer to your question because it depends. Jedis and lettuce are both mature clients. To complete the list of Java clients, there is also Redisson, which adds another layer of abstraction (Collection/Queue/Lock/… interfaces instead of raw Redis commands). It pretty much depends on how you’re working with the clients. In general, … Read more

Error 99 connecting to localhost:6379. Cannot assign requested address

In the flask app I have a function that tries to create a redis client db = redis.Redis(host=”localhost”, port=6379, decode_responses=True) When your flask process runs in a container, localhost refers to the network interface of the container itself. It does not resolve to the network interface of your docker host. So you need to replace … Read more