Skip to content

This gem adds a Redis::Retry class which can be used to auto-retry failed Redis queries.

License

Notifications You must be signed in to change notification settings

Nitin-Salunke/redis-retry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis-retry

Requires the redis gem.

Automatically retries all Redis calls if the Redis server is not available.

r = Redis::Retry.new(:tries => 3, :wait => 5, :redis => @r)

Redis::Retry will proxy all Redis calls. If a Errno::ECONNREFUSED error occurs, the command will be retried the specified number of times, waiting the specified number of seconds between tries. After all tries have been made unsuccessfully, the Errno::ECONNREFUSED will be raised.

Useful to ensure that apps don't fail when Redis is unavailable for a short amount of time.

Installation

$ gem install redis-retry

Author

Matt Duncan [email protected]

About

This gem adds a Redis::Retry class which can be used to auto-retry failed Redis queries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%