cache

package
v0.0.0-...-ee52f1a Latest Latest
Warning

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

Go to latest
Published: Mar 2, 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 Repository

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

Repository is a struct that contains cache client to execute commands

func NewCacheRepository

func NewCacheRepository(addr string) Repository

NewCacheRepository is a constructor to create a new instance of CacheRepository

func (Repository) Get

func (c Repository) Get(ctx context.Context, id int32) (*model.AddressBook, error)

Get is a function to get values from cache

func (Repository) Set

func (c Repository) Set(ctx context.Context, addressBook *model.AddressBook) error

Set is a function to set values into cache

Jump to

Keyboard shortcuts

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