repository

package
v0.0.0-...-49c6e27 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisRepo

type RedisRepo struct {
	*redis.Client
	*logger.Logger
}

func NewRedisRepo

func NewRedisRepo(logger *logger.Logger, opts *redis.Options) *RedisRepo

func (*RedisRepo) CheckConnection

func (r *RedisRepo) CheckConnection(ctx context.Context)

func (*RedisRepo) Get

func (r *RedisRepo) Get(data string) (string, error)

func (*RedisRepo) Insert

func (r *RedisRepo) Insert(data string) error

func (*RedisRepo) Remove

func (r *RedisRepo) Remove(data string) error

type Repository

type Repository interface {
	Insert(data string) error
	Remove(data string) error
	Get(data string) (string, error)
}

Jump to

Keyboard shortcuts

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