stores

package
v2.1.5+incompatible Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindCache = "Cache"
	Namespace = "baster"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheModel

type CacheModel struct {
	Data []byte `datastore:",noindex"`
}

func (*CacheModel) Key

func (model *CacheModel) Key(key string) *datastore.Key

type Datastore

type Datastore struct {
	// contains filtered or unexported fields
}

func NewDatastore

func NewDatastore() (*Datastore, error)

func (*Datastore) Delete

func (cache *Datastore) Delete(ctx context.Context, key string) error

func (*Datastore) Get

func (cache *Datastore) Get(ctx context.Context, key string) ([]byte, error)

func (*Datastore) Put

func (cache *Datastore) Put(ctx context.Context, key string, data []byte) error

Jump to

Keyboard shortcuts

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