gocache

package
v0.0.0-...-39d8f80 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoCache

type GoCache struct {
	// contains filtered or unexported fields
}

func Provider

func Provider(expiration, cleanup time.Duration) *GoCache

func (*GoCache) CleanupExpiredCache

func (g *GoCache) CleanupExpiredCache() error

func (*GoCache) Get

func (g *GoCache) Get(k string) (interface{}, bool)

func (*GoCache) Set

func (g *GoCache) Set(k string, v interface{}) error

Jump to

Keyboard shortcuts

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