gcache

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 1 Imported by: 0

README

gcache

Concurrency-safe Go caching library with generics support and multiple cache stores.

GoVersion Build GoReportCard CoverageStatus GoDoc License

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache added in v0.0.4

type Cache[K comparable, V any] interface {
	Hash(any) (string, error)
	SetHasher(hash.Hasher)
}

Cache represents the interface for all caches

func New added in v0.0.4

func New[K comparable, V any]() Cache[K, V]

New creates a new instance of gcache.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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