cache

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 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 CacheItem

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

type TimedCache

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

func NewTimedCache

func NewTimedCache(interval time.Duration) *TimedCache

func (*TimedCache) DeleteExpired

func (c *TimedCache) DeleteExpired()

func (*TimedCache) Get

func (c *TimedCache) Get(key string) (any, bool)

func (*TimedCache) Set

func (c *TimedCache) Set(key string, value any)

func (*TimedCache) StopCleanup

func (c *TimedCache) StopCleanup()

Jump to

Keyboard shortcuts

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