storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Google Datastore backing store.

Memcache backing store.

Index

Constants

View Source
const DefaultTTL = 24 * time.Hour

Variables

View Source
var ErrNotFound = errors.New("store: item not found")

Functions

This section is empty.

Types

type Store

type Store interface {
	Add(ctx context.Context, content string) (string, error)
	Get(ctx context.Context, key string) (string, error)
	Delete(ctx context.Context, key string) error
	Expire(ctx context.Context) error
}

func NewGDS

func NewGDS() Store

func NewMemcache

func NewMemcache() Store

Jump to

Keyboard shortcuts

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