cache

package
v0.0.0-...-2b6b123 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheClient

type CacheClient interface {
	Get(key string, v interface{}) (bool, error)
	Set(key string, expiration int, v interface{}) error
	Delete(key string) error
	FlushAll() error
}

func Get

func Get(config map[string]interface{}) (CacheClient, error)

type NoopClient

type NoopClient struct {
}

func (*NoopClient) Delete

func (np *NoopClient) Delete(key string) error

func (*NoopClient) FlushAll

func (np *NoopClient) FlushAll() error

func (*NoopClient) Get

func (np *NoopClient) Get(key string, v interface{}) (bool, error)

func (*NoopClient) Set

func (np *NoopClient) Set(key string, expiration int, v interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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