Storing Strings in Redis: Utility Commands
Let’s look at some utility commands related to storing Strings in Redis.
We'll cover the following...
We'll cover the following...
KEYS command
If we need to find out what keys are stored in the Redis, we can use the keys command, as shown below. This command will return all the keys saved in the database. The syntax of this command is:
keys *
INCR command
We can use this command if we need to increment the value of a given key by 1. In the example below, we are increasing the stock price of oracle by 1. The syntax of this command is:
INCR key
INCRBY command
We can use this command if we need to increment the ...