Rueidis
A fast Redis Storage that does auto pipelining and supports client side caching. redis/rueidis.
Note: Requires Go 1.20 and above
Table of Contents
Signatures
func New(config ...Config) Storage
func (s *Storage) Get(key string) ([]byte, error)
func (s *Storage) Set(key string, val []byte, exp time.Duration) error
func (s *Storage) Delete(key string) error
func (s *Storage) Reset() error
func (s *Storage) Close() error
func (s *Storage) Conn() rueidis.Client
Installation
Rueidis is tested on the latest Go version with support for modules. So make sure to initialize one first if you didn't do that yet:
go mod init github.com/<user>/<repo>
And then install the rueidis implementation:
go get github.com/gofiber/storage/rueidis