Documentation ¶
Index ¶
- type Item
- func (i *Item) Bool() bool
- func (i *Item) Bytes() []byte
- func (z *Item) DecodeMsg(dc *msgp.Reader) (err error)
- func (z Item) EncodeMsg(en *msgp.Writer) (err error)
- func (i *Item) Float() float64
- func (i *Item) Hit(timeoutSeconds int64, current int64) bool
- func (i *Item) Int() int64
- func (i *Item) Map() msg.Map
- func (i *Item) Marshal() (data []byte, err error)
- func (z Item) MarshalMsg(b []byte) (o []byte, err error)
- func (z Item) Msgsize() (s int)
- func (i *Item) PackValue()
- func (i *Item) Slice() []interface{}
- func (i *Item) String() string
- func (i *Item) StringMap() map[string]string
- func (i *Item) Time() time.Time
- func (i *Item) Uint() uint64
- func (z *Item) UnmarshalMsg(bts []byte) (o []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { CreatedAt int64 `msg:"c"` UpdatedAt int64 `msg:"u"` Value interface{} `msg:"v"` }
Item 缓存Item
func (Item) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
Click to show internal directories.
Click to hide internal directories.