Documentation ¶
Index ¶
- func InitDb() (*redis.Client, func(), error)
- type Redis2Repository
- func (r *Redis2Repository) ClearAll(c context.Context) error
- func (r *Redis2Repository) Create(c context.Context, edge domain.Edge) error
- func (r *Redis2Repository) Delete(c context.Context, edge domain.Edge, queryMode bool) error
- func (r *Redis2Repository) Get(c context.Context, edge domain.Edge, queryMode bool) ([]domain.Edge, error)
- func (r *Redis2Repository) Ping(c context.Context) error
- type RedisRepository
- func (r *RedisRepository) ClearAll(c context.Context) error
- func (r *RedisRepository) Create(c context.Context, edge domain.Edge) error
- func (r *RedisRepository) Delete(c context.Context, edge domain.Edge, queryMode bool) error
- func (r *RedisRepository) Get(c context.Context, edge domain.Edge, queryMode bool) ([]domain.Edge, error)
- func (r *RedisRepository) Ping(c context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Redis2Repository ¶
type Redis2Repository struct {
// contains filtered or unexported fields
}
func NewRedis2Repository ¶
func NewRedis2Repository(client *redis.Client) (*Redis2Repository, error)
type RedisRepository ¶
type RedisRepository struct {
// contains filtered or unexported fields
}
func NewRedisRepository ¶
func NewRedisRepository(client *redis.Client) (*RedisRepository, error)
Click to show internal directories.
Click to hide internal directories.