api

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package plugin_simplecache_conteo is a plugin to cache responses to disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileCache

type FileCache struct {
	// contains filtered or unexported fields
}

func NewFileCache

func NewFileCache(path string) (*FileCache, error)

func (*FileCache) Check added in v1.0.5

func (c *FileCache) Check(refresh bool) bool

func (*FileCache) Close

func (c *FileCache) Close()

func (*FileCache) Delete

func (c *FileCache) Delete(key string)

func (*FileCache) DeleteAll

func (c *FileCache) DeleteAll(flushType string)

func (*FileCache) Get

func (c *FileCache) Get(key string) ([]byte, error)

func (*FileCache) Set

func (c *FileCache) Set(key string, val []byte, expiry time.Duration) error

Jump to

Keyboard shortcuts

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