fiberstore

package
v0.0.0-...-570c91f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 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 Redis

type Redis struct {
	Client  *redis.Client
	HashKey string
}

func NewRedis

func NewRedis(client *redis.Client, hashKey string) *Redis

func (*Redis) Close

func (r *Redis) Close() error

Close implements fiber.Storage

func (*Redis) Delete

func (r *Redis) Delete(key string) error

Delete implements fiber.Storage

func (*Redis) Get

func (r *Redis) Get(key string) ([]byte, error)

Get implements fiber.Storage

func (*Redis) Reset

func (r *Redis) Reset() error

Reset implements fiber.Storage

func (*Redis) Set

func (r *Redis) Set(key string, val []byte, exp time.Duration) error

Set implements fiber.Storage

Jump to

Keyboard shortcuts

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