AOF and RDB backups in redis

Does this mean that practically, I’m getting backups every 60 seconds? NO. Redis does a background save after 60 seconds, if there’re at least 10000 keys have been changed. Otherwise, it doesn’t do a background save. Will using appendonly on and appendfsync everysec cause a performance downgrade? Will it hit the CPU? The write load … Read more

How can I delete specific jobs from Resque queue without clearing the whole queue?

In resque’s sources (Job class) there’s such method, guess it’s what you need 🙂 # Removes a job from a queue. Expects a string queue name, a # string class name, and, optionally, args. # # Returns the number of jobs destroyed. # # If no args are provided, it will remove all jobs of … Read more

Setting up Redis on Webfaction

Introduction Because of the special environment restrictions of Webfaction servers the installation instructions are not as straightforward as they would be. Nevertheless at the end you will have a fully functioning Redis server that stays up even after a reboot. I personally installed Redis by the following procedure about a half a year ago and … Read more

how to save a docker redis container

Data in docker is not persistent, when you restart the container your data will be gone. To prevent this you have to share a map on the host machine with your container. When you container restarts it will get the data from the map on the host. You can read more about it in the … Read more

Find key by value

One of the things you learn fast while working with redis is that you get to design your data structure around your accessing needs, specially when it comes to relations (it’s not a relational database after all) There is no way to search by “value” with a O(1) time complexity as you already noticed, but … Read more

redis: backing up dump.rdb

From http://redis.io/topics/persistence Redis is very data backup friendly since you can copy RDB files while the database is running: the RDB is never modified once produced, and while it gets produced it uses a temporary name and is renamed into its final destination atomically using rename(2) only when the new snapshot is complete. So, the … Read more

Redis AUTH command in Python

Thanks to the hints from the comments. I found the answer from https://redis-py.readthedocs.org/en/latest/. It says class redis.StrictRedis(host=”localhost”, port=6379, db=0, password=None, socket_timeout=None, connection_pool=None, charset=”utf-8″, errors=”strict”, unix_socket_path=None) So AUTH is in fact password passed by keyword argument.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)