Documentation
¶
Index ¶
- Variables
- func Author() string
- func License() string
- func Version() string
- type Object
- type Objects
- func (o *Objects) Close() error
- func (o *Objects) Decr(key string) error
- func (o *Objects) Del(key string) error
- func (o *Objects) Flush() error
- func (o *Objects) Get(key string) interface{}
- func (o *Objects) Has(key string) bool
- func (o *Objects) Incr(key string) error
- func (o *Objects) MGet(key ...string) []interface{}
- func (o *Objects) Set(key string, val interface{}, ttl int64) error
- func (o *Objects) SetGC(gcInterval, gcMaxOnce int)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrKeyNotExists is key not exists error ErrKeyNotExists = errors.New("xcache: the key is not exists") // ErrDataTypeNotSupported is data type not supported error ErrDataTypeNotSupported = errors.New("xcache: data type is not supported") // ErrValueLessThanZero is value less than zero error ErrValueLessThanZero = errors.New("xcache: object value is less than zero") )
Functions ¶
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object is storing single object
Click to show internal directories.
Click to hide internal directories.