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) (*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 ¶
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
Click to show internal directories.
Click to hide internal directories.