redis

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

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

func New

func New(client redisProvider) Redis

func (Redis) Get

func (r Redis) Get(ctx context.Context, key, invoker string) *redis.StringCmd

func (Redis) HGet

func (r Redis) HGet(ctx context.Context, key, field, invoker string) *redis.StringCmd

func (Redis) MGet

func (r Redis) MGet(ctx context.Context, keys []string, invoker string) *redis.SliceCmd

func (Redis) MSet

func (r Redis) MSet(ctx context.Context, values []interface{}, invoker string) *redis.StatusCmd

func (Redis) Ping

func (r Redis) Ping(ctx context.Context, invoker string) *redis.StatusCmd

func (Redis) Set

func (r Redis) Set(ctx context.Context, key string, value interface{}, expiration time.Duration, invoker string) *redis.StatusCmd

func (Redis) SetEX

func (r Redis) SetEX(ctx context.Context, key string, value interface{}, expiration time.Duration, invoker string) *redis.StatusCmd

Jump to

Keyboard shortcuts

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