store

package
v0.0.0-...-29b2579 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateSQL

func MigrateSQL(cfg *config.Config, logger *slog.Logger) error

func NewEntDB

func NewEntDB(cfg *config.Config, logger *slog.Logger) (*db.Client, error)

func NewMultiDriver

func NewMultiDriver(r, w dialect.Driver, logger *slog.Logger) dialect.Driver

func NewRedisCli

func NewRedisCli(cfg *config.Config) *redis.Client

func RecoverMigrate16

func RecoverMigrate16(m *migrate.Migrate, logger *slog.Logger)

func ScanRedis

func ScanRedis(ctx context.Context, rdb *redis.Client, pattern string, limit int, fn func(rs []*RedisResult) error) error

Types

type RedisResult

type RedisResult struct {
	Key   string
	Value int64
}

Jump to

Keyboard shortcuts

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