cache

package
v1.57.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ENV_VAR_CACHE_OFFLINE_MODE = "CACHE_OFFLINE_MODE"
View Source
const ENV_VAR_CACHE_ROOT_FOLDER = "DT_CACHE_FOLDER"
View Source
const ENV_VAR_DELETE_CACHE_ON_LAUNCH = "DT_CACHE_DELETE_ON_LAUNCH"
View Source
const ENV_VAR_NO_CACHE_CLEANUP = "DT_NO_CACHE_CLEANUP"

Variables

This section is empty.

Functions

func CRUD

func CRUD[T settings.Settings](service settings.CRUDService[T], force ...bool) settings.CRUDService[T]

func Cleanup

func Cleanup()

func Disable

func Disable()

func Enable

func Enable()

func GetCacheFolder

func GetCacheFolder() string

func Offline

func Offline()

func Read

func Read[T settings.Settings](service settings.RService[T], force ...bool) settings.RService[T]

Types

type Mode

type Mode byte
const (
	ModeDisabled Mode = iota
	ModeEnabled
	ModeOffline
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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