ExfileMemory
An in-memory (ets) storage adapter for Exfile. Usually doesn't make much sense because it will be completely emptied if your app restarts.
Installation
Add exfile_memory to your list of dependencies in
mix.exs:def deps do [ {:exfile, ">= 0.0.0"}, {:exfile_memory, "~> 0.0.1"} ] end
Ensure exfile_memory is started before your application:
def application do [ applications: [ :exfile, :exfile_memory ] ] end
Configure the backend in
config.exs(or environment equivalent)config :exfile, Exfile, backends: %{ "cache" => [ExfileMemory.Backend, %{ directory: "/", max_size: nil, hasher: Exfile.Hasher.Random }] }