cache

package module
v0.0.0-...-895f7ca Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 5 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

cache

cache to predator

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheModel

type CacheModel struct {
	Key   string `gorm:"primaryKey"`
	Value []byte
}

func (CacheModel) TableName

func (CacheModel) TableName() string

type SQLiteCache

type SQLiteCache struct {
	URI string
	// contains filtered or unexported fields
}

func (*SQLiteCache) Cache

func (sc *SQLiteCache) Cache(key string, val []byte) error

func (*SQLiteCache) Clear

func (sc *SQLiteCache) Clear() error

func (*SQLiteCache) Compressed

func (sc *SQLiteCache) Compressed(yes bool)

func (*SQLiteCache) Init

func (sc *SQLiteCache) Init() error

func (*SQLiteCache) IsCached

func (sc *SQLiteCache) IsCached(key string) ([]byte, bool)

Directories

Path Synopsis
mysql module
postgres module
redis module
sqlite module

Jump to

Keyboard shortcuts

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