CarCache.Clock (CarCache v0.1.1) View Source
Data structure representing a "CLOCK".
This implementation uses a circular zipper list to track the clock hand and an ETS table to store the data (and for quick lookups.)
Link to this section Summary
Functions
Insert a new key/value behind the clock hand
Check if the clock contains a given key
Return a new/empty Clock
Pop the next value after the clock hand
Link to this section Types
Specs
t() :: %CarCache.Clock{ czl: CarCache.CircularZipperList.t(), data_table: :ets.tid(), name: atom(), size: non_neg_integer() }
Link to this section Functions
Specs
Insert a new key/value behind the clock hand
Specs
Check if the clock contains a given key
Specs
Return a new/empty Clock
Specs
Pop the next value after the clock hand