aememcache

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheHandler

type CacheHandler struct {
	KeyPrefix      string
	ExpireDuration time.Duration
	Logf           func(ctx context.Context, format string, args ...interface{})
	// contains filtered or unexported fields
}

func New

func (*CacheHandler) DeleteMulti

func (ch *CacheHandler) DeleteMulti(ctx context.Context, keys []datastore.Key) error

func (*CacheHandler) DeleteMultiWithTx

func (ch *CacheHandler) DeleteMultiWithTx(info *datastore.CacheInfo, keys []datastore.Key) error

func (*CacheHandler) DeleteMultiWithoutTx

func (ch *CacheHandler) DeleteMultiWithoutTx(info *datastore.CacheInfo, keys []datastore.Key) error

func (*CacheHandler) GetAll

func (*CacheHandler) GetMulti

func (ch *CacheHandler) GetMulti(ctx context.Context, keys []datastore.Key) ([]*storagecache.CacheItem, error)

func (*CacheHandler) GetMultiWithTx

func (ch *CacheHandler) GetMultiWithTx(info *datastore.CacheInfo, keys []datastore.Key, psList []datastore.PropertyList) error

func (*CacheHandler) GetMultiWithoutTx

func (ch *CacheHandler) GetMultiWithoutTx(info *datastore.CacheInfo, keys []datastore.Key, psList []datastore.PropertyList) error

func (*CacheHandler) Next

func (*CacheHandler) PostCommit

func (ch *CacheHandler) PostCommit(info *datastore.CacheInfo, tx datastore.Transaction, commit datastore.Commit) error

func (*CacheHandler) PostRollback

func (ch *CacheHandler) PostRollback(info *datastore.CacheInfo, tx datastore.Transaction) error

func (*CacheHandler) Printf added in v0.8.2

func (ch *CacheHandler) Printf(ctx context.Context, format string, args ...interface{})

func (*CacheHandler) PutMultiWithTx

func (ch *CacheHandler) PutMultiWithTx(info *datastore.CacheInfo, keys []datastore.Key, psList []datastore.PropertyList) ([]datastore.PendingKey, error)

func (*CacheHandler) PutMultiWithoutTx

func (ch *CacheHandler) PutMultiWithoutTx(info *datastore.CacheInfo, keys []datastore.Key, psList []datastore.PropertyList) ([]datastore.Key, error)

func (*CacheHandler) Run

func (*CacheHandler) SetMulti

func (ch *CacheHandler) SetMulti(ctx context.Context, cis []*storagecache.CacheItem) error

Jump to

Keyboard shortcuts

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