interfaces

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 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 Compare

type Compare[T any] interface {
	Compare(T) bool
}

type Delete added in v1.1.1

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 constraintsi.Key] interface {
	Key() T
}

type Set

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

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 {
	Set(k K, v V, expire time.Duration)
	Get[K, V]
	Delete[K, V]
}

Jump to

Keyboard shortcuts

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