container

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2014 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	// Get returns the value by given key.
	Get(key string) (interface{}, error)

	// Set inserts/updates the item.
	Set(key string, value interface{}) error

	// Remove removes the item by given key.
	Remove(key string) error

	// Clear removes all items.
	Clear() error
}

Container represents the interface of a caching container.

Directories

Path Synopsis
arc
lfu
lru
mru

Jump to

Keyboard shortcuts

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