cache

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: GPL-3.0 Imports: 4 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 {
	Cachetime int64
	Name      string "maincache"
	Verbose   bool
	// contains filtered or unexported fields
}

func (*Cache) Clear

func (c *Cache) Clear(key interface{}) (*Cache, error)

func (*Cache) ClearAll

func (c *Cache) ClearAll() (*Cache, error)

func (*Cache) ClearGroup

func (c *Cache) ClearGroup(group string) (*Cache, error)

func (*Cache) Delete

func (c *Cache) Delete(key string) *Cache

func (*Cache) Get

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

func (*Cache) GetKey

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

func (*Cache) IsExist

func (c *Cache) IsExist(key string) bool

func (*Cache) Put

func (c *Cache) Put(group, key string, val interface{}) (*Cache, error)

Jump to

Keyboard shortcuts

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