redis.client:close

redis

client:close(no_keepalive) -> ok

Close the Redis connection

Closes the connection. By default the underlying socket is returned to the connection pool for reuse. Pass true to force-close the socket instead of pooling it. The socket is also force-closed when the pool exceeds its size limit.