cache

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 8 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 interface {
	Get(key string) (string, float32)
	Set(key string, value string, expiresIn float32)
}

type FileCache

type FileCache struct{}

func (FileCache) Get

func (c FileCache) Get(key string) (string, float32)

func (FileCache) Set

func (c FileCache) Set(key string, value string, expiresIn float32)

Jump to

Keyboard shortcuts

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