freecache

package
v0.0.0-...-69154b6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 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 FreeCache

type FreeCache struct {
	CacheSize int
	// contains filtered or unexported fields
}

func (*FreeCache) Delete

func (s *FreeCache) Delete(key string) error

func (*FreeCache) Get

func (s *FreeCache) Get(key string, i interface{}) error

func (*FreeCache) GetInt

func (s *FreeCache) GetInt(key string) (int, error)

func (*FreeCache) GetStr

func (s *FreeCache) GetStr(key string) (string, error)

func (*FreeCache) Inc

func (s *FreeCache) Inc(key string, val int) error

func (*FreeCache) Initial

func (s *FreeCache) Initial()

func (*FreeCache) Set

func (s *FreeCache) Set(key string, val interface{}, exp time.Duration) error

func (*FreeCache) SetExp

func (s *FreeCache) SetExp(key string, exp time.Duration) error

Jump to

Keyboard shortcuts

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