Documentation
¶
Overview ¶
Code generated by github.com/Hartimer/loadingcache/cmd/typedcache, DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoolCache ¶
type CoolCache interface {
Get(key Name) (int64, error)
Put(key Name, value int64)
Invalidate(key Name, keys ...Name)
InvalidateAll()
}
func NewCoolCache ¶
func NewCoolCache(options CoolCacheOptions) CoolCache
type CoolCacheOptions ¶
type Example ¶
type Example struct {
// contains filtered or unexported fields
}
Example demonstrates using a strongly typed cache
type RemovalListener ¶
type RemovalListener func(RemovalNotification)
type RemovalNotification ¶
type RemovalNotification struct {
Key Name
Value int64
Reason loadingcache.RemovalReason
}
Click to show internal directories.
Click to hide internal directories.