Documentation ¶
Index ¶
- func NewProvider(defaultExp time.Duration, cleanupInterval time.Duration) func() (interfaces.CacheImpl, error)
- type Cache
- func (this *Cache) Close() (err error)
- func (this *Cache) Get(key string) (value interface{}, resultType interfaces.ResultType, err error)
- func (this *Cache) GetWithExpiration(key string) (value interface{}, resultType interfaces.ResultType, exp time.Duration, ...)
- func (this *Cache) Remove(key string) error
- func (this *Cache) Reset() error
- func (this *Cache) Set(key string, value interface{}, exp time.Duration) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) Get ¶
func (this *Cache) Get(key string) (value interface{}, resultType interfaces.ResultType, err error)
func (*Cache) GetWithExpiration ¶
func (this *Cache) GetWithExpiration(key string) (value interface{}, resultType interfaces.ResultType, exp time.Duration, err error)
Click to show internal directories.
Click to hide internal directories.