Tennis::Backend::Redis
A Redis backend for tennis-jobs.
Usage
Simply configure Tennis with this backend:
REDIS_URL = "redis://localhost:6379"
Tennis.configure do |config|
config.backend = Tennis::Backend::Redis.new(logger: logger, url: REDIS_URL)
end
The backend take an extra argument nammed namespace
.
Its default value is: tennis
. All the redis keys are prefixed with tennis:
.
TODO
- Support the delay option.
License
The gem is available as open source under the terms of the MIT License.