Redis – Benchmarks Redis benchmark is the utility to check the performance of Redis by running n commands simultaneously. Syntax Following is the basic syntax of Redis benchmark. redis-benchmark [option] [option value] Example Following example checks Redis by calling 100000 commands. redis-benchmark -n 100000 PING_INLINE: 141043.72 requests per second PING_BULK: 142857.14 requests per second SET: […]
Redis – Server Redis server commands are basically used to manage Redis server. Example Following example explains how we can get all statistics and information about the server. redis 127.0.0.1:6379> INFO # Server redis_version:2.8.13 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:c2238b38b1edb0e2 redis_mode:standalone os:Linux 3.5.0-48-generic x86_64 arch_bits:64 multiplexing_api:epoll gcc_version:4.7.2 process_id:3856 run_id:0e61abd297771de3fe812a3c21027732ac9f41fe tcp_port:6379 uptime_in_seconds:11554 uptime_in_days:0 hz:10 lru_clock:16651447 config_file: # Clients connected_clients:1 […]
Redis – Backup Redis SAVE command is used to create a backup of the current Redis database. Syntax Following is the basic syntax of redis SAVE command. 127.0.0.1:6379> SAVE Example Following example creates a backup of the current database. 127.0.0.1:6379> SAVE OK This command will create a dump.rdb file in your Redis directory. Restore Redis […]