store

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package store provides utilities to work with a cache store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefCacher

type RefCacher interface {
	Store(key, value string)
	Load(key string) (string, bool)
}

RefCacher is an interface for caching references.

func NewRefCacher

func NewRefCacher() RefCacher

NewRefCacher returns a new RefCacher. The default implementation is thread-safe.

func NewUnsafeCacher

func NewUnsafeCacher() RefCacher

NewUnsafeCacher returns a new RefCacher that's not thread-safe.

Jump to

Keyboard shortcuts

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