Permalink
Browse files

docs: be more explicit on the set_keepalive method.

  • Loading branch information...
agentzh committed Nov 24, 2012
1 parent 663edca commit d6e69448700a37e62f3a6e50361b9a325d1de153
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.markdown
View
@@ -148,13 +148,13 @@ set_keepalive
------------
`syntax: ok, err = memc:set_keepalive(max_idle_timeout, pool_size)`
-Puts the current memcached connection into the ngx_lua cosocket connection pool.
+Puts the current memcached connection immediately into the ngx_lua cosocket connection pool.
You can specify the max idle timeout (in ms) when the connection is in the pool and the maximal size of the pool every nginx worker process.
In case of success, returns `1`. In case of errors, returns `nil` with a string describing the error.
-Only call this method in the place you would have called the `close` method instead. Calling this method will immediately turn the current memcached object into the `closed` state. Any subsequent operations on the current objet will return the `closed` error.
+Only call this method in the place you would have called the `close` method instead. Calling this method will immediately turn the current memcached object into the `closed` state. Any subsequent operations other than `connect()` on the current objet will return the `closed` error.
get_reused_times
----------------

0 comments on commit d6e6944

Please sign in to comment.