cache

package
v2.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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) Bool

func (i *Item) Bool() bool

func (*Item) Bytes

func (i *Item) Bytes() []byte

func (*Item) DecodeMsg

func (z *Item) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Item) EncodeMsg

func (z Item) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Item) Float

func (i *Item) Float() float64

func (*Item) Hit

func (i *Item) Hit(timeoutSeconds int64, current int64) bool

func (*Item) Int

func (i *Item) Int() int64

func (*Item) Map

func (i *Item) Map() msg.Map

func (*Item) Marshal

func (i *Item) Marshal() (data []byte, err error)

func (Item) MarshalMsg

func (z Item) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Item) Msgsize

func (z Item) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Item) PackValue

func (i *Item) PackValue()

func (*Item) Slice

func (i *Item) Slice() []interface{}

func (*Item) String

func (i *Item) String() string

func (*Item) StringMap

func (i *Item) StringMap() map[string]string

func (*Item) Time

func (i *Item) Time() time.Time

func (*Item) Uint

func (i *Item) Uint() uint64

func (*Item) UnmarshalMsg

func (z *Item) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL