Use redis as a cache store
This commit is contained in:
@@ -4,5 +4,8 @@ Hanami.app.register_provider :clients, namespace: true do
|
||||
register "blue_sky", Adamantium::Client::BlueSky.new
|
||||
register "omdb", Adamantium::Client::Omdb.new(api_key: target["settings"].omdb_api_key)
|
||||
register "gist", Adamantium::Client::Gist.new(token: target["settings"].gist_client_token)
|
||||
|
||||
require "redis"
|
||||
register "redis", Redis.new
|
||||
end
|
||||
end
|
||||
|
@@ -4,6 +4,9 @@ require "adamantium/types"
|
||||
|
||||
module Adamantium
|
||||
class Settings < Hanami::Settings
|
||||
# App Settings
|
||||
setting :cache_store, default: :redis_cache_store
|
||||
|
||||
# Infrastructure
|
||||
setting :database_url
|
||||
|
||||
|
Reference in New Issue
Block a user