In Redis, the MSET
command allows us to set multiple keys at once. It replaces any existing values, just as SET
does.
Tag: commands
Redis SET Command Explained
In Redis, the SET
command sets a key to hold a given string value.
If the key already holds a value, it is overwritten with the new value. Also, any previous time to live associated with the key is discarded (assuming a successful SET
operation).
Redis GET Command Explained
In Redis, the GET
command returns the value of a given key. If the key doesn’t exist, it returns nil
.
An error is returned if the value stored at key
is not a string.
Redis LASTSAVE Command Explained
When using Redis, we can use the LASTSAVE
command to get the Unix time of the last DB save.
More specifically, LASTSAVE
returns the Unix time of the last DB save executed with success.