redis

package
v0.0.0-...-121f34a Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 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 RedisCache

type RedisCache struct {
	Client *redis.Client
	// contains filtered or unexported fields
}

func NewRedisCache

func NewRedisCache(addr string, user string, pass string, DB int) *RedisCache

func (*RedisCache) CreateContributions

func (cache *RedisCache) CreateContributions(ctx context.Context, login domain.Login, item domain.Contributions) error

func (*RedisCache) CreateContributors

func (cache *RedisCache) CreateContributors(ctx context.Context, owner domain.Owner, repo domain.Repo, item domain.RepoContributors) error

func (*RedisCache) CreateInfo

func (cache *RedisCache) CreateInfo(ctx context.Context, owner domain.Owner, repo domain.Repo, item domain.Contribution) error

func (*RedisCache) CreateReadMe

func (cache *RedisCache) CreateReadMe(ctx context.Context, owner domain.Owner, repo domain.Repo, main domain.MainBranch, ext domain.FileExt, item domain.ReadMe) error

func (*RedisCache) ListContributions

func (cache *RedisCache) ListContributions(ctx context.Context) (items []domain.Contributions, err error)

func (*RedisCache) ListContributors

func (cache *RedisCache) ListContributors(ctx context.Context) (items []domain.RepoContributors, err error)

func (*RedisCache) ListInfo

func (cache *RedisCache) ListInfo(ctx context.Context) (items []domain.Contribution, err error)

func (*RedisCache) ListReadMe

func (cache *RedisCache) ListReadMe(ctx context.Context) (items []domain.ReadMe, err error)

func (*RedisCache) ReadContributions

func (cache *RedisCache) ReadContributions(ctx context.Context, login domain.Login, numContributions int32) (item domain.Contributions, err error)

func (*RedisCache) ReadContributors

func (cache *RedisCache) ReadContributors(ctx context.Context, owner domain.Owner, repo domain.Repo, topN int32) (item domain.RepoContributors, err error)

func (*RedisCache) ReadInfo

func (cache *RedisCache) ReadInfo(ctx context.Context, owner domain.Owner, repo domain.Repo) (item domain.Contribution, err error)

func (*RedisCache) ReadReadMe

func (cache *RedisCache) ReadReadMe(ctx context.Context, owner domain.Owner, repo domain.Repo, main domain.MainBranch, ext domain.FileExt) (item domain.ReadMe, err error)

func (*RedisCache) UpdateContributions

func (cache *RedisCache) UpdateContributions(ctx context.Context, login domain.Login, item domain.Contributions) error

func (*RedisCache) UpdateContributors

func (cache *RedisCache) UpdateContributors(ctx context.Context, owner domain.Owner, repo domain.Repo, item domain.RepoContributors) error

func (*RedisCache) UpdateInfo

func (cache *RedisCache) UpdateInfo(ctx context.Context, owner domain.Owner, repo domain.Repo, item domain.Contribution) error

func (*RedisCache) UpdateReadMe

func (cache *RedisCache) UpdateReadMe(ctx context.Context, owner domain.Owner, repo domain.Repo, main domain.MainBranch, ext domain.FileExt, item domain.ReadMe) error

Jump to

Keyboard shortcuts

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