cache

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTranscoder = transcoder{
	Marshal:   json.Marshal,
	UnMarshal: json.Unmarshal,
}

Functions

func SetMarshal added in v0.0.5

func SetMarshal(marshaller func(interface{}) ([]byte, error))

func SetUnMarshal added in v0.0.5

func SetUnMarshal(unMarshaller func([]byte, interface{}) error)

Types

type AbstractCache

type AbstractCache interface {
	Get(string) ([]byte, error)
	GetWithUnmarshal(string, interface{}) error

	Set(string, []byte, ...int) error
	SetWithMarshal(string, interface{}, ...int) error

	Delete(string) error
	Exists(string) bool
}

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

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