I'm running Redis with Docker and there is an authentication password with the REDIS_PASSWORD env variable. After connecting to the container with docker exec command, connect to redis CLI by entering the redis-cli command.
I want to store a JSON payload into redis. There's really 2 ways I can do this: One using a simple string keys and values. key:user, value:payload (the entire JSON blob which can be 100-200 KB) SE...
I'm working with redis on my local machine so I dont really need to set up a password to connect to the server with my php client (I'm using predis as a client). However, I'm moving my app to a live
Is there a Redis command for fetching all keys in the database? I have seen some python-redis libraries fetching them. But was wondering if it is possible from redis-client.
This looks like a good solution! I was able to open redis-cli directly by running the following command docker exec -it some-redis redis-cli and skip over the bash step.
In my Redis DB I have a number of prefix:<numeric_id> hashes. Sometimes I want to purge them all automatically. How do I do this without using some distributed locking mechanism?
154 My redis instance seems to being growing very large and I'd like to find out which of the multiple databases I have in there consumes how much memory. Redis' INFO command just shows me the total size and the number of keys per database which doesn't give me much insight...
the advantage of redis-server --version is that it can be run even when the server is down (e.g. in a Jenkins pipeline when testing a Redis container), while redis-cli info <subinfo> will succeed only in a complete working setup, with redis-server running and responsive and with open network connectivity between redis-cli and redis-server