Redis RPUSHX Command Explained

In Redis, the RPUSHX command inserts one or more values into the tail of the list at the specified key, but only if the key exists and it contains a list.

If the key doesn’t exist, no operation is performed. If the key exists but it doesn’t contain a list, an error is returned.

Read more

Redis RPUSH Command Explained

In Redis, the RPUSH command inserts one or more values into the tail of the list at the specified key.

If the key doesn’t exist, it is created as an empty list before performing the push operation. If the key already holds a value that is not a list, an error is returned.

Read more

Redis LPUSHX Command Explained

In Redis, the LPUSHX command inserts one or more values into the head of the list at the specified key, but only if the key exists and it contains a list.

If the key doesn’t exist, no operation is performed. If the key exists but it doesn’t contain a list, an error is returned.

Read more

Redis LPUSH Command Explained

In Redis, the LPUSH command inserts one or more values into the head of the list at the specified key.

If the key doesn’t exist, it is created as an empty list before performing the push operation. If the key already holds a value that is not a list, an error is returned.

Read more

4 Ways to Set a Key and its Expiry in Redis

Redis provides us with quite a few options for setting keys and any timeouts associated with those keys. Sometimes we can do it with a single command, other times we need two commands.

Here are four ways to set a key and its expiry in Redis.

Read more