Documentation ¶
Index ¶
- Constants
- type MemCache
- func (mc *MemCache) EnsureGet(key string) (interface{}, bool)
- func (mc *MemCache) Get(key string) (interface{}, bool)
- func (mc *MemCache) GetStore() *gocache.Cache
- func (mc *MemCache) Remove(key string)
- func (mc *MemCache) Set(key string, value interface{})
- func (mc *MemCache) SetOnEvicted(f func(string, interface{}))
- func (mc *MemCache) SetResolver(resovler Resolver)
- func (mc *MemCache) TryGet(key string) (interface{}, bool)
- type Resolver
Constants ¶
View Source
const ( //NoExpiration : //Indicates cached object will never be expired NoExpiration = gocache.NoExpiration // DefaultExpiration : // The default value for expiration DefaultExpiration = gocache.DefaultExpiration )
Default value for cache configuration noinspection GoUnusedConst
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemCache ¶
type MemCache struct {
// contains filtered or unexported fields
}
func NewEnsureCache ¶
export
func (*MemCache) SetOnEvicted ¶
func (*MemCache) SetResolver ¶
Click to show internal directories.
Click to hide internal directories.