redis

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectPool

func ConnectPool(addr string) (*redis.Pool, error)

Types

type Repository

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

func NewRepository

func NewRepository(pool *redis.Pool) *Repository

func (Repository) CacheResponse

func (r Repository) CacheResponse(_ context.Context, response schema.CachedResponse) error

func (Repository) GetCachedResponse

func (r Repository) GetCachedResponse(_ context.Context, key string) (schema.CachedResponse, error)

func (Repository) Lock

func (r Repository) Lock(_ context.Context, key string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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