Documentation ¶
Index ¶
- type RedisEntity
- type RedisEntityId
- type RedisRepository
- type RedisRepositoryImpl
- func (r *RedisRepositoryImpl[E, ID]) Delete(e E) error
- func (r *RedisRepositoryImpl[E, ID]) DeleteAll(e ...E) (count int64, err error)
- func (r *RedisRepositoryImpl[E, ID]) DeleteAllById(id ...ID) (count int64, err error)
- func (r *RedisRepositoryImpl[E, ID]) DeleteById(id ID) error
- func (r *RedisRepositoryImpl[E, ID]) FindAllById(id ...ID) (res []E, err error)
- func (r *RedisRepositoryImpl[E, ID]) FindById(id ID) (e E, err error)
- func (r *RedisRepositoryImpl[E, ID]) Save(e E) error
- func (r *RedisRepositoryImpl[E, ID]) SaveAll(e ...E) (count int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisEntity ¶
type RedisEntity[ID RedisEntityId] interface { gpa.Entity[ID] GetKey() string }
type RedisEntityId ¶
type RedisRepository ¶
type RedisRepository[E RedisEntity[ID], ID RedisEntityId] interface { gpa.CrudRepository[E, ID] }
func NewRedisRepository ¶
func NewRedisRepository[E RedisEntity[ID], ID RedisEntityId](ctx context.Context, pipe redis.Pipeliner) RedisRepository[E, ID]
type RedisRepositoryImpl ¶
type RedisRepositoryImpl[E RedisEntity[ID], ID RedisEntityId] struct { // contains filtered or unexported fields }
func NewRedisRepositoryImpl ¶
func NewRedisRepositoryImpl[E RedisEntity[ID], ID RedisEntityId](ctx context.Context, pipe redis.Pipeliner) *RedisRepositoryImpl[E, ID]
func (*RedisRepositoryImpl[E, ID]) Delete ¶
func (r *RedisRepositoryImpl[E, ID]) Delete(e E) error
func (*RedisRepositoryImpl[E, ID]) DeleteAll ¶
func (r *RedisRepositoryImpl[E, ID]) DeleteAll(e ...E) (count int64, err error)
func (*RedisRepositoryImpl[E, ID]) DeleteAllById ¶
func (r *RedisRepositoryImpl[E, ID]) DeleteAllById(id ...ID) (count int64, err error)
func (*RedisRepositoryImpl[E, ID]) DeleteById ¶
func (r *RedisRepositoryImpl[E, ID]) DeleteById(id ID) error
func (*RedisRepositoryImpl[E, ID]) FindAllById ¶
func (r *RedisRepositoryImpl[E, ID]) FindAllById(id ...ID) (res []E, err error)
func (*RedisRepositoryImpl[E, ID]) FindById ¶
func (r *RedisRepositoryImpl[E, ID]) FindById(id ID) (e E, err error)
func (*RedisRepositoryImpl[E, ID]) Save ¶
func (r *RedisRepositoryImpl[E, ID]) Save(e E) error
func (*RedisRepositoryImpl[E, ID]) SaveAll ¶
func (r *RedisRepositoryImpl[E, ID]) SaveAll(e ...E) (count int64, err error)
Click to show internal directories.
Click to hide internal directories.