cache

package
v0.0.0-...-925651e Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheContract

type CacheContract interface {
	Put(name string, value interface{}) (bool, *errors.AppError)
	Get(name string) (interface{}, *errors.AppError)
	GetAs(name string, m interface{})
	Forget(name string) (interface{}, *errors.AppError)
}

func Store

func Store(key string) CacheContract

type FileCache

type FileCache struct {
	ResponseWriter http.ResponseWriter
	HttpRequest    *http.Request
	FilePath       string
	FileMode       os.FileMode
}

func File

func File(args ...interface{}) *FileCache

func (*FileCache) Forget

func (s *FileCache) Forget(name string) (interface{}, *errors.AppError)

func (*FileCache) Get

func (s *FileCache) Get(name string) (interface{}, *errors.AppError)

func (*FileCache) GetAs

func (s *FileCache) GetAs(name string, m interface{})

func (*FileCache) Put

func (s *FileCache) Put(name string, value interface{}) (bool, *errors.AppError)

Jump to

Keyboard shortcuts

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