View Source Plausible.Cache.Stats (Plausible v0.0.1)

Keeps track of hit/miss ratio for various caches.

Summary

Functions

Link to this function

bump(cache_name, type, increment, table \\ __MODULE__)

View Source

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

gather(cache_name, table \\ __MODULE__)

View Source
Link to this function

hit_rate(cache_name, table \\ __MODULE__)

View Source

Callback implementation for GenServer.init/1.

See Plausible.Cache.Adapter.size/1.

Link to this function

track(item, cache_name, table \\ __MODULE__)

View Source