redis

package
v0.0.0-...-20a5a9c Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func Connect

func Connect(dsn string) (*DB, error)

func (*DB) Close

func (c *DB) Close() error

func (*DB) Delete

func (c *DB) Delete(ctx context.Context, keys ...string) error

func (*DB) Get

func (c *DB) Get(ctx context.Context, key string) (string, error)

func (*DB) ScanKeys

func (c *DB) ScanKeys(ctx context.Context, regexp string, count int64) ([]string, error)

func (*DB) ScanValues

func (c *DB) ScanValues(ctx context.Context, keys []string) ([]any, error)

func (*DB) Set

func (c *DB) Set(ctx context.Context, key string, value any, expiration time.Duration) error

Jump to

Keyboard shortcuts

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