cache

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 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 Cache

type Cache interface {
	Get(key string) (string, error)
	Set(key string, value string, durationInMinutes int) error
	Del(key string) error
	Ping() error
}

type Redis

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

func NewRedis

func NewRedis(file string) *Redis

func (*Redis) Del

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

func (*Redis) Get

func (r *Redis) Get(key string) (string, error)

func (*Redis) Ping

func (r *Redis) Ping() error

func (*Redis) Set

func (r *Redis) Set(key string, value string, durationInMinutes int) error

Jump to

Keyboard shortcuts

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