types

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyed

type Keyed interface {
	MapKey() uint64
	ShardKey() uint64
}

Keyed defines a unique key and a precomputed shard key for the value.

type Refreshable added in v1.4.4

type Refreshable interface {
	ShouldBeRefreshed(cfg config.Config) bool
}

type Sized

type Sized interface {
	Weight() int64
}

Sized provides memory usage accounting for cache entries.

type Timestampable added in v1.4.4

type Timestampable interface {
	Touch()             // updates touchedAt field to now
	TouchedAt() int64   // unix nano
	RefreshedAt() int64 // unix nano
	TouchRefreshedAt()  // updates refreshedAt field to now
}

Jump to

Keyboard shortcuts

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