interfaces

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 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 Delete

type Delete[K constraints.Key, V any] interface {
	Delete(key K)
}

type DurationGenerator

type DurationGenerator interface {
	Duration() time.Duration
}

type Get

type Get[K constraints.Key, V any] interface {
	Get(key K) V
}

type IdGenerator

type IdGenerator[T constraints.ID] interface {
	Id() T
}

type Init

type Init interface {
	Init()
}

type Key

type Key[T constraints.Key] interface {
	Key() T
}

type Set

type Set[K constraints.Key, V any] interface {
	Set(key K, v V)
}

type SetWithExpire

type SetWithExpire[K constraints.Key, V any] interface {
	SetWithExpire(key K, v V, expire time.Duration)
}

type Store

type Store[K constraints.Key, V any] interface {
	Set[K, V]
	Get[K, V]
	Delete[K, V]
}

type StoreWithExpire

type StoreWithExpire[K constraints.Key, V any] interface {
	SetWithExpire[K, V]
	Get[K, V]
	Delete[K, V]
}

Jump to

Keyboard shortcuts

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