View Source Plausible.Cache.Adapter (Plausible v0.0.1)
Interface for the underlying cache implementation. Currently: ConCache
Using the Adapter module directly, the user must ensure that the relevant processes are available to use, which is normally done via the child specification.
Summary
Functions
@spec child_spec(atom(), atom(), Keyword.t()) :: Supervisor.child_spec()
@spec keys(atom()) :: Enumerable.t()
@spec size(atom()) :: non_neg_integer() | nil
@spec with_lock(atom(), any(), pos_integer(), (-> result)) :: {:ok, result} | {:error, :timeout} when result: any()