cache

package
v0.0.0-...-f38779c Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package cache provides a unified interface to in memory cache. Under the App Engine environment, it uses App Engine's memcache, while under standard environments it will provide access to any number of cache interfaces, right now it only supports an in-memory LRU, but in the future it will support Redis, Memcache, and even permanent key/value stores

Index

Constants

This section is empty.

Variables

View Source
var (
	Driver     CacheDriver
	Memory     = 50 * lru.Megabyte
	MaxEntries = 2 << 10
	Nodes      int
)

Functions

func New

func New(ctx context.Context) cache.Cache

Types

type CacheDriver

type CacheDriver int
const (
	CacheDriverLRU CacheDriver = iota
)

Jump to

Keyboard shortcuts

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