storage

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiskCacheAdvancedTransform

func DiskCacheAdvancedTransform(key string) *diskv.PathKey

func DiskCacheInverseTransform

func DiskCacheInverseTransform(pathKey *diskv.PathKey) (key string)

func Init

func Init()

func Read

func Read(key string) ([]byte, bool)

func Write

func Write(key string, content []byte) error

Types

type DiskStorage

type DiskStorage struct {
	C *diskv.Diskv
}
var DefaultDiskStorage *DiskStorage

func (*DiskStorage) Read

func (d *DiskStorage) Read(key string) ([]byte, bool)

func (*DiskStorage) Write

func (d *DiskStorage) Write(key string, content []byte) error

Jump to

Keyboard shortcuts

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