v2

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache[K comparable, V any] interface {
	Get(key K) (value V, ok bool)
	Set(key K, val V)
	SetWithExp(key K, val V, exp time.Duration)
	Delete(key K)
}

Cache defines the generics cache interface for 1.8 or above version. Notice: SetWithExp function is not necessarily implemented

Jump to

Keyboard shortcuts

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