localcache

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: MIT Imports: 5 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 {
	ExpireDuration time.Duration
	Logf           func(ctx context.Context, format string, args ...interface{})
	// contains filtered or unexported fields
}

func New

func (*CacheHandler) DeleteCache added in v0.8.0

func (ch *CacheHandler) DeleteCache(ctx context.Context, key datastore.Key)

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) FlushLocalCache

func (ch *CacheHandler) FlushLocalCache()

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) Has

func (ch *CacheHandler) Has(key datastore.Key) bool

func (*CacheHandler) Len

func (ch *CacheHandler) Len() int

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