Documentation ¶
Overview ¶
Package cache provides implementation of cache
Package cache provides implementation of cache
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Start(context.Context) Get(string) (interface{}, bool) Set(string, interface{}) Delete(string) GetAndDelete(string) (interface{}, bool) }
Cache represent the cache interface to store cache.
type Option ¶
type Option func(*cache)
Option represents the functional option for cache.
func WithExpireCheckDuration ¶
WithExpireCheckDuration returns Option after set expireCheckDur when dur is cprrect param.
func WithExpireDuration ¶
WithExpireDuration returns Option after set expireDur when dur is cprrect param.
func WithExpiredHook ¶
WithExpiredHook returns Option after set expiredHook when f is not nil.
Directories ¶
Path | Synopsis |
---|---|
Package cacher provides implementation of cache type definition
|
Package cacher provides implementation of cache type definition |
Package gache provides implementation of cache using gache Package gache provides implementation of cache using gache
|
Package gache provides implementation of cache using gache Package gache provides implementation of cache using gache |
Click to show internal directories.
Click to hide internal directories.