storefactory

package
v0.0.0-...-0fd8c6a Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, cfg Config) (store.Store, error)

New returns a new Store instance that combines database and Redis.

Types

type Config

type Config struct {
	store.Config `json:",inline" yaml:",inline" mapstructure:",squash"`
	Redis        redis.Config  `json:"redis" yaml:"redis" mapstructure:"redis"`
	ExecutionTTL time.Duration `json:"execution_ttl" yaml:"execution_ttl" mapstructure:"execution_ttl"`
	ResultTTL    time.Duration `json:"result_ttl" yaml:"result_ttl" mapstructure:"result_ttl"`
	ProgressTTL  time.Duration `json:"progress_ttl" yaml:"progress_ttl" mapstructure:"progress_ttl"`
}

Config extends store.Config with Redis and TTL settings.

Jump to

Keyboard shortcuts

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