Lotus.Cache.Cachex (Lotus v0.10.0)
View SourceA Cachex-based, local or distributed, in-memory cache adapter for Lotus.
This adapter requires the Cachex library. Please add {:cachex, "~> 4.0"} to your dependencies.
Example configuration in config/config.exs:
config :lotus, :cache,
adapter: Lotus.Cache.Cachex,
cachex_opts: [limit: 1_000_000] # Optional Cachex optionsSee Cachex documentation for available options. By default, Cachex will use a local-only routing strategy. To enable distributed caching, you can choose your preferred router by following the instructions in the Cachex docs.