cache

package module
v0.0.0-...-1e16bd4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 3 Imported by: 0

README

cache

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(capacity int) *Cache

func (*Cache) Clear

func (cache *Cache) Clear()

func (*Cache) Delete

func (cache *Cache) Delete(key string)

func (*Cache) Get

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

func (*Cache) Set

func (cache *Cache) Set(key string, value interface{})

func (*Cache) SetCapacity

func (cache *Cache) SetCapacity(capacity int)

func (*Cache) SetEx

func (cache *Cache) SetEx(key string, value interface{}, cacheTime int64)

Jump to

Keyboard shortcuts

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