redis

package
v0.0.0-...-ea208d4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthRepo

func NewAuthRepo(redisAddress string) (repository.AuthRepository, error)

Types

type RedisStorage

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

func (*RedisStorage) DeleteToken

func (rs *RedisStorage) DeleteToken(key string) error

func (*RedisStorage) GetToken

func (rs *RedisStorage) GetToken(key string) (string, error)

func (*RedisStorage) HasToken

func (rs *RedisStorage) HasToken(key string) (bool, error)

func (*RedisStorage) SetToken

func (rs *RedisStorage) SetToken(key, val string, time time.Duration) error

Jump to

Keyboard shortcuts

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