Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { // Bytes serializes objects before they go into storage. Users are required to define this one Bytes func(k string, v interface{}) []byte // FromBytes deserializes object coming from storage. Users are required to define this one FromBytes func(k string, v []byte) interface{} // New creates a new object when there's no object in cache or storage. Optional New func(k string) interface{} // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.