redis

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInternalModule

func NewInternalModule(name string, xid sdktypes.ExecutorID, client *redis.Client, keyfn func(string) string) sdkmodule.Module

Types

type Config

type Config struct {
	LRUSize   int           `koanf:"lru_size"`
	LRUExpiry time.Duration `koanf:"lru_expiry"`
}

type Token

type Token struct {
	Client *redis.Client

	// A function to manipulate the key. Usually used to add constant prefix to a key.
	KeyFunc func(string) string
}

Jump to

Keyboard shortcuts

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