cache

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT 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

type Cache struct {
	Exp    int64
	MaxLen int
	// contains filtered or unexported fields
}

func New added in v0.1.3

func New() *Cache

func (*Cache) Clean added in v0.1.2

func (c *Cache) Clean()

func (*Cache) Delete added in v0.1.3

func (c *Cache) Delete(key string)

func (*Cache) Get

func (c *Cache) Get(key string) interface{}

func (*Cache) Set

func (c *Cache) Set(key string, data interface{})

type CacheBlock

type CacheBlock struct {
	Data interface{}
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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