FunWithFlags.Store.Cache (fun_with_flags v1.8.0) View Source

The in-memory cache for the feature flag, backed by an ETS table.

This module is not meant to be used directly, but some of its functions can be useful to debug flag state.

Link to this section Summary

Functions

Returns the contents of the cache ETS table, for inspection.

Clears the cache. It will be rebuilt gradually as the public interface of the package is queried.

Link to this section Types

Specs

cached_at() :: integer()

Specs

ttl() :: integer()

Link to this section Functions

Specs

dump() :: [{atom(), {FunWithFlags.Flag.t(), cached_at(), ttl()}}]

Returns the contents of the cache ETS table, for inspection.

Specs

flush() :: true

Clears the cache. It will be rebuilt gradually as the public interface of the package is queried.