Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCacheItemNotFound = errors.New("cache item not found")
)
Functions ¶
This section is empty.
Types ¶
type ChanLocker ¶
type ChanLocker struct {
// contains filtered or unexported fields
}
func NewChanLocker ¶
func NewChanLocker() *ChanLocker
func (ChanLocker) Lock ¶
func (c ChanLocker) Lock(v interface{}, onAcquireFn func()) (acquired bool)
type GetSetCache ¶
type GetSetCache struct {
// contains filtered or unexported fields
}
func (*GetSetCache) GetOrSet ¶
func (c *GetSetCache) GetOrSet(k interface{}, setFn SetFn) (v interface{}, err error)
type JitterFn ¶
func NewJitterFn ¶
Click to show internal directories.
Click to hide internal directories.