redis

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisRepository

type RedisRepository interface {
	Set(key string, value interface{}, exp time.Duration) error
	Get(key string) (string, error)
}

RedisRepository represent the redis repositories

func NewRedisRepository

func NewRedisRepository(client *redis.Client) RedisRepository

NewRedisRepository will create an object that represent the RedisRepository interface

Jump to

Keyboard shortcuts

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