redis-cli?redis-cli is a command-line tool to interact with the Redis database. It lets you send commands and see results directly.
redis-cli on the default port?Simply type redis-cli in your terminal. It connects to localhost on port 6379 by default.
redis-cli to set a key named name with value John?Use SET name John. This stores the value John under the key name.
name in redis-cli?Use GET name. It returns the value stored under the key name.
KEYS * do in redis-cli?KEYS * lists all keys stored in the Redis database. It’s like seeing all your saved items.
redis-cli connects to if no port is specified?Redis uses port 6379 by default for connections.
SET stores a value under a key in Redis.
redis-cli?KEYS * lists all keys in the database.
GET name do?GET name fetches the value stored under the key name.
redis-cli to connect to a Redis server on a remote host 192.168.1.10?Use redis-cli -h [host] to connect to a remote Redis server.
redis-cli and set a key-value pair.redis-cli.