redis

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisStore

type RedisStore struct {
}

RedisStore is the storage with redis, all transaction information will bachend with redis

func (*RedisStore) ChangeGlobalStatus

func (s *RedisStore) ChangeGlobalStatus(global *storage.TransGlobalStore, newStatus string, updates []string, finished bool)

func (*RedisStore) FindBranches

func (s *RedisStore) FindBranches(gid string) []storage.TransBranchStore

func (*RedisStore) FindTransGlobalStore

func (s *RedisStore) FindTransGlobalStore(gid string) *storage.TransGlobalStore

func (*RedisStore) LockGlobalSaveBranches

func (s *RedisStore) LockGlobalSaveBranches(gid string, status string, branches []storage.TransBranchStore, branchStart int)

func (*RedisStore) LockOneGlobalTrans

func (s *RedisStore) LockOneGlobalTrans(expireIn time.Duration) *storage.TransGlobalStore

func (*RedisStore) MaySaveNewTrans

func (s *RedisStore) MaySaveNewTrans(global *storage.TransGlobalStore, branches []storage.TransBranchStore) error

func (*RedisStore) Ping

func (s *RedisStore) Ping() error

func (*RedisStore) PopulateData

func (s *RedisStore) PopulateData(skipDrop bool)

func (*RedisStore) ScanTransGlobalStores

func (s *RedisStore) ScanTransGlobalStores(position *string, limit int64) []storage.TransGlobalStore

func (*RedisStore) TouchCronTime

func (s *RedisStore) TouchCronTime(global *storage.TransGlobalStore, nextCronInterval int64)

func (*RedisStore) UpdateBranches added in v1.8.0

func (s *RedisStore) UpdateBranches(branches []storage.TransBranchStore, updates []string) (int, error)

Jump to

Keyboard shortcuts

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