cache

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 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
)

type TarFolder

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

func NewTarFolder

func NewTarFolder(name string) (*TarFolder, error)

func (*TarFolder) Delete

func (me *TarFolder) Delete(id string) error

func (*TarFolder) Get

func (me *TarFolder) Get(id string) (*settings.Stub, []byte, error)

func (*TarFolder) List

func (me *TarFolder) List() (settings.Stubs, error)

func (*TarFolder) ListNoValues

func (me *TarFolder) ListNoValues() (settings.Stubs, error)

func (*TarFolder) Save

func (me *TarFolder) Save(stub settings.Stub, data []byte) error

Jump to

Keyboard shortcuts

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