stefanwille / crystal-redis

Full featured Redis client for Crystal
MIT License
380 stars 61 forks source link

Add command timeout #59

Closed kostya closed 6 years ago

kostya commented 6 years ago

redis-rb have this option, i also add it. This is useful when redis-server blocked by long executed command (or dump) (sometimes this happens), and client cannot wait for long. It just throw TimeoutError, and i also remove this exception from reconection, this should only close connection and raise TimeoutError.

stefanwille commented 6 years ago

Thanks again for this PR! 😄

stefanwille commented 6 years ago

Merged, thanks!