redis

package module
v0.0.0-...-2e4b48b Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 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 RedisCache

type RedisCache struct {
	Addr, Password string
	DB             int
	// contains filtered or unexported fields
}

func (*RedisCache) Cache

func (rc *RedisCache) Cache(key string, val []byte) error

func (*RedisCache) Clear

func (rc *RedisCache) Clear() error

func (*RedisCache) Compressed

func (rc *RedisCache) Compressed(yes bool)

func (*RedisCache) Init

func (rc *RedisCache) Init() error

func (*RedisCache) IsCached

func (rc *RedisCache) IsCached(key string) ([]byte, bool)

Jump to

Keyboard shortcuts

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