redis

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderType = "redis"

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexStorageProvider

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

IndexStorageProvider implements indexstorage.IndexStorage

func NewProvider

func NewProvider(address, port, password string, enableTLS bool, insecureSkipVerify bool) (*IndexStorageProvider, error)

func (*IndexStorageProvider) LookupIndices

func (isp *IndexStorageProvider) LookupIndices(ctx context.Context, keys []string) ([]string, error)

LookupIndices looks up and returns all indices for the specified key(s). The key value(s) will be canonicalized by converting all characters into a lowercase value before looking up in Redis

func (*IndexStorageProvider) Shutdown added in v1.3.4

func (isp *IndexStorageProvider) Shutdown() error

Shutdown cleans up any client resources that may be held by the provider

func (*IndexStorageProvider) WriteIndex

func (isp *IndexStorageProvider) WriteIndex(ctx context.Context, keys []string, index string) error

WriteIndex adds the index for the specified keys. The key value(s) will be canonicalized by converting all characters into a lowercase value before appending the index in Redis

Jump to

Keyboard shortcuts

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