cache

package module
v0.0.0-...-2da0b50 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 3 Imported by: 0

README

cache

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyNotFound = errors.New("key not found in cache")

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Ping() error
	Get(context.Context, Key) (string, error)
	Put(context.Context, Key, Value, time.Duration) error
	Delete(context.Context, Key) error
	Exist(context.Context, Key) (bool, error)
	Expire(context.Context, Key, time.Duration) error
}

type Key

type Key string

type Value

type Value string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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