filecache

package
v0.2.38 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileCache

func NewFileCache() icache.ICacher

NewFileCache 文件缓存

func NewFileCacheByPath

func NewFileCacheByPath(path string) icache.ICacher

NewFileCacheByPath

Types

type FileCache

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

FileCache 文件缓存

func (*FileCache) Del

func (f *FileCache) Del(key string) bool

Del

func (*FileCache) FlushDB

func (f *FileCache) FlushDB() bool

FlushDB

func (*FileCache) Get

func (f *FileCache) Get(key string, value interface{}) bool

Get

func (*FileCache) Set

func (f *FileCache) Set(key string, value interface{}, overtime int64) bool

Set

func (*FileCache) SetPath

func (f *FileCache) SetPath(path string) icache.ICacher

SetPath 设置缓存文件的路径

Jump to

Keyboard shortcuts

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