cache

package
v0.0.0-...-8375e82 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package cache provides basic caching mechanisms for Go(lang) projects.

Currently supported caching algorithms:

MemoryNoTS: provides a non-thread safe in-memory caching system
Memory    : provides a thread safe in-memory caching system, built on top of MemoryNoTS cache
LRUNoTS   : provides a non-thread safe, fixed size in-memory caching system, built on top of MemoryNoTS cache
LRU       : provides a thread safe, fixed size in-memory caching system, built on top of LRUNoTS cache
MemoryTTL : provides a thread safe, expiring in-memory caching system,  built on top of MemoryNoTS cache

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(key string) (string, error)

	Set(key, value string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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