local

package
v1.0.8 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: 11 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, vacuum time.Duration, memory bool) (*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(path 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

type FileLock

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

func (*FileLock) Lock

func (l *FileLock) Lock()

func (*FileLock) RLock

func (l *FileLock) RLock()

func (*FileLock) RUnlock

func (l *FileLock) RUnlock()

func (*FileLock) Unlock

func (l *FileLock) Unlock()

type PathMutex

type PathMutex struct {
	Lock map[string]*FileLock
	// contains filtered or unexported fields
}

func (*PathMutex) MutexAt

func (m *PathMutex) MutexAt(path string) *FileLock

Jump to

Keyboard shortcuts

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