Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfanjiapeng <fanjiapeng@126.com>2018-11-16 11:54:33 +0300
committerfanjiapeng <fanjiapeng@126.com>2018-11-16 11:54:33 +0300
commitda2139dca6db90d99b47b327c6092c3fb87e13cb (patch)
tree2a8f7946613a50e4ce9f8bda8786d527c6642cb8 /README.markdown
parent8918b3ea181d2edbb7788df2f6b12ebb88b1cbfb (diff)
Update README.markdown
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown12
1 files changed, 10 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown
index 5dbea00f..2e3a6717 100644
--- a/README.markdown
+++ b/README.markdown
@@ -271,7 +271,7 @@ _**Description**_: Swap one Redis database with another atomically
##### *Return value*
`TRUE` on success and `FALSE` on failure.
-*note*: Requires Redis >= 4.0.0
+*Note*: Requires Redis >= 4.0.0
##### *Example*
~~~php
@@ -280,7 +280,15 @@ $redis->swapdb(0, 1); /* Swaps DB 0 with DB 1 atomically */
### close
-----
-_**Description**_: Disconnects from the Redis instance, except when `pconnect` is used.
+_**Description**_: Disconnects from the Redis instance, include when `pconnect` is used.
+
+*Note*: Requires Redis >= 4.2.0, phpredis can closed the persistent connection.
+
+##### *Parameters*
+None.
+
+##### *Return value*
+*BOOL*: `TRUE` on success, `FALSE` on failure.
### setOption
-----