Use redis as a cache store

This commit is contained in:
2024-03-16 19:00:52 +11:00
parent e385e6782e
commit 546c51ed4f
12 changed files with 82 additions and 27 deletions

View File

@@ -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

View File

@@ -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