Documentation ¶
Index ¶
- Variables
- func NewProvider(maxIdleConns int, timeout time.Duration, memcacheUrl ...string) 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)
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = cacheerrors.ErrNotFound
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.