cachestore

package
v0.0.0-...-db8a2f5 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	Dir string
}

func (*Store) DelValue

func (s *Store) DelValue(name string) error

func (*Store) DelValuePrefix

func (s *Store) DelValuePrefix(prefix string) ([]string, error)

func (*Store) GetPathToStringFile

func (s *Store) GetPathToStringFile(filename string) string

func (*Store) LoadOrSaveValue

func (s *Store) LoadOrSaveValue(name string, fetchFn func() (string, error)) (string, error)

func (*Store) LoadStringFile

func (s *Store) LoadStringFile(filename string) (string, error)

func (*Store) LoadValue

func (s *Store) LoadValue(name string) (string, error)

func (*Store) SaveValue

func (s *Store) SaveValue(name, value string) error

func (*Store) WriteStringFile

func (s *Store) WriteStringFile(filename, contents string) error

Jump to

Keyboard shortcuts

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