cache

package
v0.0.0-...-9109040 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(key interface{}) interface{}

	// Deprecated: don't use that! It will lead to concurrency problems
	ContainsKey(key interface{}) bool
	Put(key, value interface{})

	// put only if don't exists else return actual value
	PutIfAbsent(key, value interface{}) interface{}
	Remove(key interface{})
	Clear()
	KeySet() []interface{}
	Size() int
}

Directories

Path Synopsis
lru

Jump to

Keyboard shortcuts

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