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

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