Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { EvictionPolicy stash.EvictionPolicy `json:"eviction_policy"` TimeToLive time.Duration `json:"time_to_live"` MaxSize int `json:"max_size"` Debug bool `json:"debug"` DebugPrefix string `json:"debug_prefix"` }
Configuration describes what can be configured for the memory stash
type Memory ¶
type Memory interface { //Configure Configure(...interface{}) error //SetParameters SetParameters(...interface{}) //Initialize can be used to setup internal pointers // and ready the stash for usage Initialize() error //Shutdown can be used to tear down internal pointers // and ready the stash for garbage collection (or reuse) Shutdown() error }
Memory describes the concrete implementation of the memory stash that isn't described by the Stasher interface
Click to show internal directories.
Click to hide internal directories.