cache

package
v0.0.0-...-d752177 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

cache/cache.go

Index

Constants

View Source
const (
	CacheBucket     = "Cache"
	ConfigBucket    = "Config"
	CacheEnabledKey = "true"
)

Variables

This section is empty.

Functions

func ClearCache

func ClearCache(db *bbolt.DB) error

func CountCacheEntries

func CountCacheEntries(db *bbolt.DB) (int, error)

func GetCacheStatus

func GetCacheStatus() (bool, error)

func GetFromCache

func GetFromCache(key string) ([]byte, bool, error)

func HandleCacheCommand

func HandleCacheCommand(args []string)

func SaveToCache

func SaveToCache(key string, response []byte) error

func SetCacheEnabled

func SetCacheEnabled(enabled bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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