entry

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT 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 {
	Type   types.DataType
	Data   []byte
	Expiry int64
}

func NewEntry

func NewEntry(dataType types.DataType, data []byte, exp time.Duration) Entry

func (Entry) IsExpired

func (e Entry) IsExpired() bool

func (Entry) IsExpiredWithUnixMilli

func (e Entry) IsExpiredWithUnixMilli(now int64) bool

Jump to

Keyboard shortcuts

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