Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache represents cache
func (*Cache) Get ¶
Get returns data from cache by keys
If data not exist Getter function will be called to get data Data returned by Getter function will be placed into cache
type Keys ¶
type Keys []int
Keys represents set of cache keys It always slice of int for two reasons: - we do not have separate Get and GetMulti functions - integers are most common used primary keys in db
Click to show internal directories.
Click to hide internal directories.