filecache

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage(filename string, timeout time.Duration) *Storage

func (*Storage) Close

func (s *Storage) Close()

func (*Storage) Find

func (s *Storage) Find(bucket string, key string) [][]byte

func (*Storage) Get

func (s *Storage) Get(bucket string, key string) ([]byte, bool)

func (*Storage) Remove

func (s *Storage) Remove(bucket string, key string)

func (*Storage) Set

func (s *Storage) Set(bucket string, key string, raw []byte)

func (*Storage) Stats

func (s *Storage) Stats() any

Jump to

Keyboard shortcuts

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