redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewState

func NewState(cfg *Config, expiryCallback state.FnExpiryCallback) (state.State, error)

NewState initializes a new state adapter for Redis based on the given configuration. An error could be returned if any errors happens during the adapter initialization.

Types

type Config

type Config struct {
	Addr string `yaml:"addr"`
}

Config hold the configuration about the Redis state adapter

Jump to

Keyboard shortcuts

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