@@ -12,7 +12,43 @@ Some helpful commands:
1212- ` KEYS * ` list all keys. Not for production environment.
1313- ` EXISTS key `
1414
15- ## node_redis
15+
16+ ### redis-cli
17+
18+ redis-cli doesn't allow to execte scripts only commands.
19+
20+ ``` txt
21+ C:\Program Files\Redis>redis-cli.exe -h
22+ redis-cli 2.4.6 (git:26cdd13a)
23+
24+ Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]]
25+ -h <hostname> Server hostname (default: 127.0.0.1)
26+ -p <port> Server port (default: 6379)
27+ -s <socket> Server socket (overrides hostname and port)
28+ -a <password> Password to use when connecting to the server
29+ -r <repeat> Execute specified command N times
30+ -i <interval> When -r is used, waits <interval> seconds per command.
31+ It is possible to specify sub-second times like -i 0.1.
32+ -n <db> Database number
33+ -x Read last argument from STDIN
34+ -d <delimiter> Multi-bulk delimiter in for raw formatting (default: \n)
35+ --raw Use raw formatting for replies (default when STDOUT is not a tty)
36+ --latency Enter a special mode continuously sampling latency.
37+ --help Output this help and exit
38+ --version Output version and exit
39+
40+ Examples:
41+ cat /etc/passwd | redis-cli -x set mypasswd
42+ redis-cli get mypasswd
43+ redis-cli -r 100 lpush mylist x
44+ redis-cli -r 100 -i 1 info | grep used_memory_human:
45+
46+ When no command is given, redis-cli starts in interactive mode.
47+ Type "help" in interactive mode for information on available commands.
48+ ```
49+
50+
51+ ### node_redis
1652
1753[ node_redis] ( https://github.com/mranney/node_redis ) is a node.js redis client.
1854
0 commit comments