The delay between the different command calls in seconds (with the ability The -r option states how many times to run a command and -i sets Option: $ redis-cli -x SET net_services and -i. To the content of the file /etc/services from a local file system, use the -x For example, in order to set the Redis key net_services One is to use the target payload as the last argumentįrom stdin. There are two ways you can use redis-cli in order to receive input from otherĬommands via the standard input. You can specify a certificate and a corresponding private key using -cert and If the target server requires authentication using a client side certificate, cacertdir to configure a trusted root certificate bundle or directory. You may enable SSL/TLS using the -tls option, along with -cacert or Option and the URI pattern $ redis-cli -u PINGīy default, redis-cli uses a plain TCP connection to connect to Redis. Some or all of this information can also be provided by using the -u Other than the default number zero by using the -n option: $ redis-cli FLUSHALL NOTE: For security reasons, provide the password to redis-cli automatically via theįinally, it's possible to send a command that operates on a database number Perform authentication saving the need of explicitly using the AUTH command: $ redis-cli -a myUnguessablePazzzzzword123 PING If your instance is password protected, the -a option will In order to set a different port, use -p. To specify a different host name or an IP address, use the -h option. You can change the port using several command line options. When you input strings that contain single or double quotes, as you might in passwords, for example, escape the string, like so: 127.0.0.1:6379> AUTH some_admin_user port, password, and databaseīy default, redis-cli connects to the server at the address 127.0.0.1 with port 6379. Single quotes assume the string is literal, and allow only the following escape sequences:įor example, to return Hello World on two lines: 127.0.0.1:6379> SET mykey "Hello\nWorld"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |