cache

package
v0.0.0-...-550907a Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(ttl time.Duration) *Cache

func (*Cache) Exist

func (c *Cache) Exist(key string) (bool, error)

func (*Cache) Set

func (c *Cache) Set(key string, value bool)

func (*Cache) ShouldDirect

func (c *Cache) ShouldDirect(key string) (string, bool)

Jump to

Keyboard shortcuts

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