redisprovider

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisProvider

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

func New

func New(options *redis.Options) (*RedisProvider, error)

func (*RedisProvider) Get

func (p *RedisProvider) Get(_ context.Context, key string) ([]byte, error)

func (*RedisProvider) Set

func (p *RedisProvider) Set(_ context.Context, key string, value []byte, expiry time.Duration) error

Jump to

Keyboard shortcuts

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