Documentation ¶
Index ¶
- type Bucket
- type Cache
- func (c *Cache) Delete(keys ...string)
- func (c *Cache) Get(key string, timeoutSecond int64, handler func() ([]byte, error)) []byte
- func (c *Cache) GetValue(key string, timeoutSecond int64) (value []byte, exists bool)
- func (c *Cache) Info() Info
- func (c *Cache) Length() int64
- func (c *Cache) SetValue(key string, value []byte)
- func (c *Cache) SyncLocal()
- type Info
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
func (*Bucket) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
type Item ¶
type Item struct { Key string `json:"key" msg:"-"` Value []byte `json:"value" msg:"value"` Hit int64 `json:"hit" msg:"-"` Miss int64 `json:"miss" msg:"-"` InvokeCount int64 `json:"invokeCount" msg:"-"` CreatedAt int64 `json:"createdAt" msg:"createdAt"` // contains filtered or unexported fields }
func (*Item) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
Click to show internal directories.
Click to hide internal directories.