Packages
Plug to cache requests declaratively for either GraphQL or Phoenix, this plug is intended to short circuit all json/decoding or parsing a server would normally do
Current section
Files
Jump to
Current section
Files
config/config.ex
import Config
config :request_cache,
graphql_paths: ["/graphiql", "/graphql"],
conn_priv_key: :__shared_request_cache__,
request_cache_module: RequestCache.ConCacheStore,
default_ttl: :timer.hours(1),
default_concache_opts: [
ttl_check_interval: :timer.seconds(1),
aquire_lock_timeout: :timer.seconds(1),
ets_options: [write_concurrency: true, read_concurrency: true]
]