redis

package
v0.0.0-...-9700327 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDb

func InitDb() (*redis.Client, func(), error)

Types

type Redis2Repository

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

func NewRedis2Repository

func NewRedis2Repository(client *redis.Client) (*Redis2Repository, error)

func (*Redis2Repository) ClearAll

func (r *Redis2Repository) ClearAll(c context.Context) error

func (*Redis2Repository) Create

func (r *Redis2Repository) Create(c context.Context, edge domain.Edge) error

func (*Redis2Repository) Delete

func (r *Redis2Repository) Delete(c context.Context, edge domain.Edge,
	queryMode bool) error

func (*Redis2Repository) Get

func (r *Redis2Repository) Get(c context.Context, edge domain.Edge,
	queryMode bool) ([]domain.Edge, error)

func (*Redis2Repository) Ping

type RedisRepository

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

func NewRedisRepository

func NewRedisRepository(client *redis.Client) (*RedisRepository, error)

func (*RedisRepository) ClearAll

func (r *RedisRepository) ClearAll(c context.Context) error

func (*RedisRepository) Create

func (r *RedisRepository) Create(c context.Context, edge domain.Edge) error

func (*RedisRepository) Delete

func (r *RedisRepository) Delete(c context.Context, edge domain.Edge,
	queryMode bool) error

func (*RedisRepository) Get

func (r *RedisRepository) Get(c context.Context, edge domain.Edge,
	queryMode bool) ([]domain.Edge, error)

func (*RedisRepository) Ping

func (r *RedisRepository) Ping(c context.Context) error

Jump to

Keyboard shortcuts

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