mxcache

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

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpireErrors

type ExpireErrors []error

func (ExpireErrors) Err

func (e ExpireErrors) Err() error

func (ExpireErrors) Error

func (e ExpireErrors) Error() string

type MXCacheCreator

type MXCacheCreator func(u *url.URL) (MXCacher, error)

type MXCacher

type MXCacher interface {
	Get(key string) (interface{}, error)
	Set(key string, data interface{}, ex int) error
	Expire(pattern string) (expiredKeys, error)
}

func NewMXCache

func NewMXCache(uri string) (MXCacher, error)

Jump to

Keyboard shortcuts

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