Versions in this module Expand all Collapse all v1 v1.0.2 May 22, 2026 v1.0.1 May 16, 2026 v1.0.0 May 14, 2026 v0 v0.12.12 Apr 21, 2026 v0.12.11 Apr 10, 2026 v0.12.10 Apr 9, 2026 Changes in this version + func NewGormHashService(db *gorm.DB, logger *zap.Logger) cache.Hash + func NewGormListService[T any](prefix string, dur time.Duration) cache.CachedList[T] + type CacheEntry struct + CreatedAt time.Time + DeletedAt gorm.DeletedAt + ExpiresAt *time.Time + ID uint + Key string + UpdatedAt time.Time + Value string + type GormHashService struct + func (gh *GormHashService) Existed(ctx context.Context, key string) (bool, error) + func (gh *GormHashService) GetAll(ctx context.Context, key string) (map[string]string, error) + func (gh *GormHashService) GetValues(ctx context.Context, key string, fields ...string) ([]any, error) + func (gh *GormHashService) SetTTL(ctx context.Context, key string, ttl time.Duration) + func (gh *GormHashService) SetValues(ctx context.Context, key string, values map[string]any) error + type GormListService struct + func (gl *GormListService[T]) Append(ctx context.Context, key string, raw ...T) error + func (gl *GormListService[T]) Del(ctx context.Context, key string) error + func (gl *GormListService[T]) GetAll(ctx context.Context, key string) ([]T, error) + type HashEntry struct + CreatedAt time.Time + DeletedAt gorm.DeletedAt + ExpiresAt *time.Time + Field string + ID uint + Key string + UpdatedAt time.Time + Value string + type ListEntry struct + CreatedAt time.Time + DeletedAt gorm.DeletedAt + ExpiresAt *time.Time + ID uint + Key string + SortOrder int + UpdatedAt time.Time + Value string