cache

package
v0.0.0-...-fa6965a Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ValueSize = 28

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func Open

func Open(path string) (*Cache, error)

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) Err

func (c *Cache) Err() error

func (*Cache) Set

func (c *Cache) Set(key string, value []byte) (changed bool)

Set sets the key to value, returning false if the last call to Set for this key provided an identical value, true otherwise. Note in particular that if an underlying error occures true will be returned.

Jump to

Keyboard shortcuts

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