rediscache

package
v0.0.0-...-1bb5f61 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 8 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
}

func New

func New(client *redis.Client, repo domain.GoodsRepository, key string) *Repository

func (*Repository) CreateItem

func (r *Repository) CreateItem(ctx context.Context, projectId int, name string) (*repository.GoodsItem, error)

func (*Repository) DeleteItem

func (r *Repository) DeleteItem(ctx context.Context, id int, projectId int) (*repository.GoodsItem, error)

func (*Repository) GetItem

func (r *Repository) GetItem(ctx context.Context, id int, projectId int) (*repository.GoodsItem, error)

func (*Repository) ListItems

func (r *Repository) ListItems(ctx context.Context, limit int, offset int) ([]repository.GoodsItem, error)

func (*Repository) Reprioritize

func (r *Repository) Reprioritize(ctx context.Context, id int, projectId int, startPriority int) ([]repository.GoodsItem, error)

func (*Repository) UpdateItem

func (r *Repository) UpdateItem(ctx context.Context, id int, projectId int, name string, description string) (*repository.GoodsItem, error)

Jump to

Keyboard shortcuts

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