SandboxCase.Sandbox.Cachex (sandbox_case v0.4.0-rc1)

Copy Markdown View Source

Sandbox adapter for Cachex. Works with vanilla Cachex — no fork required.

On setup, patches Cachex.Services.Overseer.retrieve/1 to check the process dictionary for sandbox overrides, then starts a pool of isolated Cachex instances. Each test checks out a clean set and checks it back in.

config :sandbox_case,
  sandbox: [cachex: [:my_cache, :other_cache]]

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.