goredisstore

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	Redis *redis.Client
}

func New

func New(redis *redis.Client) *Store

func (*Store) Refresh

func (r *Store) Refresh(ctx context.Context, key, value string, ttl time.Duration) error

func (*Store) Release

func (r *Store) Release(ctx context.Context, key, value string) error

func (*Store) SetNX

func (r *Store) SetNX(ctx context.Context, key, value string, ttl time.Duration) (bool, error)

func (*Store) TTL

func (r *Store) TTL(ctx context.Context, key, value string) (time.Duration, error)

Jump to

Keyboard shortcuts

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