Nebulex.Adapter.Storage behaviour (Nebulex v2.0.0-rc.2) View Source
Specifies the adapter cache storage API.
This behaviour specifies all read/write functions applied to all cache entries.
Link to this section Summary
Callbacks
Flushes the cache and returns the number of evicted keys.
Returns the total number of cached entries.
Link to this section Callbacks
Specs
flush(Nebulex.Adapter.adapter_meta()) :: integer()
Flushes the cache and returns the number of evicted keys.
Specs
size(Nebulex.Adapter.adapter_meta()) :: integer()
Returns the total number of cached entries.
See Nebulex.Cache.size/0
.