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
Click to show internal directories.
Click to hide internal directories.