utils

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultCacheDir used for caching
	DefaultCacheDir = "/tmp/ovscache"
)

Functions

func CleanCache

func CleanCache(key string) error

CleanCache removes cached conf from disk for the given key

func ReadCache

func ReadCache(key string) ([]byte, error)

ReadCache read cached conf from disk for the given key and returns data in byte array

func SaveCache

func SaveCache(key string, conf interface{}) error

SaveCache takes in key as string and a json encoded struct Conf and save this Conf in cache dir

Types

This section is empty.

Jump to

Keyboard shortcuts

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