cache

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

The file cache driver implementation for the cache package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStore

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

func NewFileStore

func NewFileStore(prefix string) *FileStore

func (*FileStore) Decrement

func (f *FileStore) Decrement(key string, value int) int

func (*FileStore) Flush

func (f *FileStore) Flush() bool

func (*FileStore) Forever

func (f *FileStore) Forever(key string, value interface{})

func (*FileStore) Forget

func (f *FileStore) Forget(key string) bool

func (*FileStore) Get

func (f *FileStore) Get(key string) interface{}

func (*FileStore) Increment

func (f *FileStore) Increment(key string, value int) int

func (*FileStore) Many

func (f *FileStore) Many(keys []string) map[string]interface{}

func (*FileStore) Put

func (f *FileStore) Put(key string, value interface{}, seconds int)

func (*FileStore) PutMany

func (f *FileStore) PutMany(values map[string]interface{}, seconds int)

type Store

type Store interface {
	Get(key string) interface{}
	Many(keys []string) map[string]interface{}
	Put(key string, value interface{}, seconds int)
	PutMany(values map[string]interface{}, seconds int)
	Increment(key string, value int) int
	Decrement(key string, value int) int
	Forever(key string, value interface{})
	Forget(key string) bool
	Flush() bool
	GetPrefix() string
}

Jump to

Keyboard shortcuts

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