cacher

package module
v0.0.0-...-eb6ecce Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

README

go-cacher

Golang caching module

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 MustNew

func MustNew(size int) *Cache

func New

func New(size int) (*Cache, error)

func (*Cache) GetOrProcess

func (c *Cache) GetOrProcess(key interface{}, process LongProcess) (interface{}, error)

func (*Cache) Purge

func (c *Cache) Purge()

type LongProcess

type LongProcess func() (interface{}, error)

Jump to

Keyboard shortcuts

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