mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
commit
296c9fdda6
1 changed files with 20 additions and 0 deletions
20
common/redis-cli.md
Normal file
20
common/redis-cli.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# redis-cli
|
||||
|
||||
> Opens a connection to a Redis server
|
||||
|
||||
- Connect to the local server
|
||||
|
||||
`redis-cli`
|
||||
|
||||
- Connect to a remote server
|
||||
|
||||
`redis-cli -h {{host}}`
|
||||
`redis-cli -h {{host}} -p {{port}}`
|
||||
|
||||
- Specify a password
|
||||
|
||||
`redis-cli -a {{password}}`
|
||||
|
||||
- Executes Redis command
|
||||
|
||||
`redis-cli {{redis command}}`
|
Loading…
Add table
Reference in a new issue