redis

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedis

func NewRedis(opts ...Options) (adapter.Storage, error)

Types

type Options

type Options func(*r.Options)

func WithAddr

func WithAddr(addr string) Options

func WithDB

func WithDB(n int) Options

func WithPassword

func WithPassword(password string) Options

type RedisClient

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

func (*RedisClient) Close

func (r *RedisClient) Close()

func (*RedisClient) Delete

func (r *RedisClient) Delete(id string) error

func (*RedisClient) ForEach

func (r *RedisClient) ForEach(f func(id string, info []byte) bool) error

func (*RedisClient) Get

func (r *RedisClient) Get(id string) (info []byte, err error)

func (*RedisClient) Store

func (r *RedisClient) Store(id string, info []byte) error

Jump to

Keyboard shortcuts

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