redis2

package
v0.0.0-...-5c6c1e7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DIR_LIST_MARKER = "\x00"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis2SentinelStore

type Redis2SentinelStore struct {
	UniversalRedis2Store
}

func (*Redis2SentinelStore) GetName

func (store *Redis2SentinelStore) GetName() string

func (*Redis2SentinelStore) Initialize

func (store *Redis2SentinelStore) Initialize(configuration util.Configuration, prefix string) (err error)

type Redis2Store

type Redis2Store struct {
	UniversalRedis2Store
}

func (*Redis2Store) GetName

func (store *Redis2Store) GetName() string

func (*Redis2Store) Initialize

func (store *Redis2Store) Initialize(configuration util.Configuration, prefix string) (err error)

type RedisCluster2Store

type RedisCluster2Store struct {
	UniversalRedis2Store
}

func (*RedisCluster2Store) GetName

func (store *RedisCluster2Store) GetName() string

func (*RedisCluster2Store) Initialize

func (store *RedisCluster2Store) Initialize(configuration util.Configuration, prefix string) (err error)

type UniversalRedis2Store

type UniversalRedis2Store struct {
	Client redis.UniversalClient
	// contains filtered or unexported fields
}

func (*UniversalRedis2Store) BeginTransaction

func (store *UniversalRedis2Store) BeginTransaction(ctx context.Context) (context.Context, error)

func (*UniversalRedis2Store) CommitTransaction

func (store *UniversalRedis2Store) CommitTransaction(ctx context.Context) error

func (*UniversalRedis2Store) DeleteEntry

func (store *UniversalRedis2Store) DeleteEntry(ctx context.Context, fullpath util.FullPath) (err error)

func (*UniversalRedis2Store) DeleteFolderChildren

func (store *UniversalRedis2Store) DeleteFolderChildren(ctx context.Context, fullpath util.FullPath) (err error)

func (*UniversalRedis2Store) FindEntry

func (store *UniversalRedis2Store) FindEntry(ctx context.Context, fullpath util.FullPath) (entry *filer.Entry, err error)

func (*UniversalRedis2Store) InsertEntry

func (store *UniversalRedis2Store) InsertEntry(ctx context.Context, entry *filer.Entry) (err error)

func (*UniversalRedis2Store) KvDelete

func (store *UniversalRedis2Store) KvDelete(ctx context.Context, key []byte) (err error)

func (*UniversalRedis2Store) KvGet

func (store *UniversalRedis2Store) KvGet(ctx context.Context, key []byte) (value []byte, err error)

func (*UniversalRedis2Store) KvPut

func (store *UniversalRedis2Store) KvPut(ctx context.Context, key []byte, value []byte) (err error)

func (*UniversalRedis2Store) ListDirectoryEntries

func (store *UniversalRedis2Store) ListDirectoryEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int64, eachEntryFunc filer.ListEachEntryFunc) (lastFileName string, err error)

func (*UniversalRedis2Store) ListDirectoryPrefixedEntries

func (store *UniversalRedis2Store) ListDirectoryPrefixedEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int64, prefix string, eachEntryFunc filer.ListEachEntryFunc) (lastFileName string, err error)

func (*UniversalRedis2Store) RollbackTransaction

func (store *UniversalRedis2Store) RollbackTransaction(ctx context.Context) error

func (*UniversalRedis2Store) Shutdown

func (store *UniversalRedis2Store) Shutdown()

func (*UniversalRedis2Store) UpdateEntry

func (store *UniversalRedis2Store) UpdateEntry(ctx context.Context, entry *filer.Entry) (err error)

Jump to

Keyboard shortcuts

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