entry

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

Entry represents a value with its metadata.

func New

func New() *Entry

func (*Entry) Decode

func (e *Entry) Decode(buf []byte)

func (*Entry) Encode

func (e *Entry) Encode() []byte

func (*Entry) Key

func (e *Entry) Key() string

func (*Entry) LastAccess

func (e *Entry) LastAccess() int64

func (*Entry) SetKey

func (e *Entry) SetKey(key string)

func (*Entry) SetLastAccess

func (e *Entry) SetLastAccess(lastAccess int64)

func (*Entry) SetTTL

func (e *Entry) SetTTL(ttl int64)

func (*Entry) SetTimestamp

func (e *Entry) SetTimestamp(timestamp int64)

func (*Entry) SetValue

func (e *Entry) SetValue(value []byte)

func (*Entry) TTL

func (e *Entry) TTL() int64

func (*Entry) Timestamp

func (e *Entry) Timestamp() int64

func (*Entry) Value

func (e *Entry) Value() []byte

Jump to

Keyboard shortcuts

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