cache

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache added in v0.31.1

type Cache struct {
	// contains filtered or unexported fields
}
var Instance *Cache

func NewCache added in v0.31.1

func NewCache(_ config.Type) (*Cache, error)

func (*Cache) Del added in v0.31.1

func (c *Cache) Del(key string)

func (*Cache) Get added in v0.31.1

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

func (*Cache) Set added in v0.31.1

func (c *Cache) Set(key string, value any, cost int64) bool

func (*Cache) SetWithTTL added in v0.31.1

func (c *Cache) SetWithTTL(key string, value any, cost int64, ttl time.Duration) bool

func (*Cache) Wait added in v0.31.1

func (c *Cache) Wait()

Jump to

Keyboard shortcuts

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