Help us shape the future of Go! Take the 2026 Go Developer Survey

cache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package cache provides a library for abstracting the caching layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Set(KeyValuePair) error
	Get(Key) (*KeyValuePair, error)
}

Cache is an interface describing the cache layer for storing computed values.

type Key

type Key = int64

Key represents a key in a cache.

type KeyValuePair

type KeyValuePair struct {
	Key   Key
	Value Value
}

KeyValuePair represents a key-value pair in a cache.

type Value

type Value = []string

Value represents a value in a cache.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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