8000 Fix documentation for CLIENT command · devsnippet/phpredis@5582166 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5582166

Browse files
Fix documentation for CLIENT command
Relates to issue phpredis#300
1 parent d6c29e4 commit 5582166

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.markdown

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2893,10 +2893,10 @@ $redis->script('exists', $script1, [$script2, $script3, ...]);
28932893
_**Description**_: Issue the CLIENT command with various arguments.
28942894

28952895
The Redis CLIENT command can be used in four ways.
2896-
1. CLIENT LIST
2897-
1. CLIENT GETNAME
2898-
1. CLIENT SETNAME [name]
2899-
1. CLIENT KILL [ip:port]
2896+
* CLIENT LIST
2897+
* CLIENT GETNAME
2898+
* CLIENT SETNAME [name]
2899+
* CLIENT KILL [ip:port]
29002900
##### *Usage*
29012901
~~~
29022902
$redis->client('list'); // Get a list of clients
@@ -2907,10 +2907,10 @@ $redis->client('kill', <ip:port>); // Kill the process at ip:port
29072907
##### *Return value*
29082908
This will vary depending on which client command was executed.
29092909

2910-
CLIENT LIST will return an array of arrys with client information.
2911-
CLIENT GETNAME will return the client name or false if none has been set
2912-
CLIENT SETNAME will return true if it can be set and false if not
2913-
CLIENT KILL will return true if the client can be killed, and false if not
2910+
* CLIENT LIST will return an array of arrays with client information.
2911+
* CLIENT GETNAME will return the client name or false if none has been set
2912+
* CLIENT SETNAME will return true if it can be set and false if not
2913+
* CLIENT KILL will return t 46B7 rue if the client can be killed, and false if not
29142914

29152915
Note: phpredis will attempt to reconnect so you can actually kill your own connection
29162916
but may not notice losing it!

0 commit comments

Comments
 (0)
0