implement the cache purger

This commit is contained in:
Kyle Drake 2015-07-02 14:23:22 -07:00
parent 4bfaa32431
commit 3a6ca6c12b
5 changed files with 67 additions and 28 deletions

View file

@ -75,18 +75,6 @@ if ENV['RACK_ENV'] == 'development'
end
# :nocov:
# :nocov:
if $config['pubsub_url']
$pubsub_pool = ConnectionPool.new(size: 10, timeout: 5) {
Redis.new url: $config['pubsub_url']
}
end
if $config['pubsub_url'].nil? && ENV['RACK_ENV'] == 'production'
raise 'pubsub_url is missing from config'
end
# :nocov:
Sequel.datetime_class = Time
Sequel.extension :core_extensions
Sequel.extension :migration