Documentation
¶
Overview ¶
Package kvcache provide a atomic cache surport
Index ¶
- type Bucket
- func (b *Bucket) Delete(keys ...string) int
- func (b *Bucket) Get(key string, objCacher ObjectCacher) error
- func (b *Bucket) GetObject(key string) (obj interface{}, err error)
- func (b *Bucket) Keys() []string
- func (b *Bucket) Set(key string, objCacher ObjectCacher) error
- func (b *Bucket) SetObject(key string, obj interface{}) error
- type ObjectCacher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
Bucket defined a container to this cache engine
func NewBucket ¶
func NewBucket() *Bucket
NewBucket defined a function to create a new container of this cache engine
func (*Bucket) Get ¶
func (b *Bucket) Get(key string, objCacher ObjectCacher) error
Get use key to find object in Bucket
func (*Bucket) GetObject ¶
GetObject use key to find object in Bucket and return it without deserialize