Redis – Configuration In Redis, there is a configuration file (redis.conf) available at the root directory of Redis. Although you can get and set all Redis configurations by Redis CONFIG command. Syntax Following is the basic syntax of Redis CONFIG command. redis 127.0.0.1:6379> CONFIG GET CONFIG_SETTING_NAME Example redis 127.0.0.1:6379> CONFIG GET loglevel 1) “loglevel” 2) […]
Redis – Strings Redis strings commands are used for managing string values in Redis. Following is the syntax for using Redis string commands. Syntax redis 127.0.0.1:6379> COMMAND KEY_NAME Example redis 127.0.0.1:6379> SET tutorialspoint redis OK redis 127.0.0.1:6379> GET tutorialspoint “redis” In the above example, SET and GET are the commands, while tutorialspoint is the key. […]
Redis – Commands Redis commands are used to perform some operations on Redis server. To run commands on Redis server, you need a Redis client. Redis client is available in Redis package, which we have installed earlier. Syntax Following is the basic syntax of Redis client. $redis-cli Example Following example explains how we can start […]