Skip to content

Commit 784728f

Browse files
committed
docs: fixed typos where "redis" should have been "mysql". thanks doledoletree for reporting it.
1 parent fae3d85 commit 784728f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ set_keepalive
168168
------------
169169
`syntax: ok, err = db:set_keepalive(max_idle_timeout, pool_size)`
170170

171-
Puts the current Redis connection immediately into the ngx_lua cosocket connection pool.
171+
Puts the current MySQL connection immediately into the ngx_lua cosocket connection pool.
172172

173173
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.
174174

175175
In case of success, returns `1`. In case of errors, returns `nil` with a string describing the error.
176176

177-
Only call this method in the place you would have called the `close` method instead. Calling this method will immediately turn the current redis object into the `closed` state. Any subsequent operations other than `connect()` on the current objet will return the `closed` error.
177+
Only call this method in the place you would have called the `close` method instead. Calling this method will immediately turn the current `resty.mysql` object into the `closed` state. Any subsequent operations other than `connect()` on the current objet will return the `closed` error.
178178

179179
get_reused_times
180180
----------------

0 commit comments

Comments
 (0)