Documentation ¶
Index ¶
- Variables
- type Backend
- type Cache
- type CacheInterface
- type Freecache
- func (f *Freecache) Clear() (err error)
- func (f *Freecache) Delete(ctx context.Context, key interface{}) (err error)
- func (f *Freecache) Get(ctx context.Context, key interface{}) (value interface{}, exist bool, err error)
- func (f *Freecache) Set(ctx context.Context, key interface{}, value interface{}, Expiration int) (err error)
- type Interface
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ERR_EXPIRATION_DATE_EXPIRED = errors.New("error expiration date") ERR_DRIVER_NOT_SUPPORTED_VALUE = errors.New("driver not supported value") )
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { Get(ctx context.Context, key interface{}) (value interface{}, exist bool, err error) Set(ctx context.Context, key interface{}, value interface{}, Expiration int) (err error) Delete(ctx context.Context, key interface{}) (err error) Clear() (err error) }
func NewFreeCacheBackend ¶
type CacheInterface ¶
type Freecache ¶
type Freecache struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.