cache

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 6 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 struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(engine core.Engine) *Cache

NewCache creates and initializes a new Cache instance. It starts a goroutine for housekeeping and returns a pointer to the new Cache.

func (*Cache) ClearAll

func (c *Cache) ClearAll()

func (*Cache) Get

func (c *Cache) Get(name string) *core.CacheItem

func (*Cache) GetAll

func (c *Cache) GetAll() []*core.CacheItem

func (*Cache) Housekeeping

func (c *Cache) Housekeeping()

func (*Cache) Set

func (c *Cache) Set(name string, item *core.CacheItem)

type Node

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

Jump to

Keyboard shortcuts

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