redigostore

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: 4 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 {
	Pool *redis.Pool
}

func New

func New(pool *redis.Pool) *Store

func (*Store) Refresh

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

func (*Store) Release

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

func (*Store) SetNX

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

func (*Store) TTL

func (r *Store) TTL(_ 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