cache

package
v0.0.0-...-f10e182 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Get(key string) (string, error)
	GetStruct(key string, entity any) error
	Set(key, value string, exp time.Duration) error
	SetStruct(key string, value any, exp time.Duration) error
	Delete(key string) error
	Close() error
}

func NewInstance

func NewInstance(config *config.RedisCredentials) (Repository, error)

Directories

Path Synopsis
Package mock_cache is a generated GoMock package.
Package mock_cache is a generated GoMock package.

Jump to

Keyboard shortcuts

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