| 13 | ) |
| 14 | |
| 15 | type CheckCache interface { |
| 16 | GetCache(ctx context.Context, key string) (*domain.Check, error) |
| 17 | SetCache(ctx context.Context, key string, check domain.Check, ttl time.Duration) error |
| 18 | ClearCache(ctx context.Context, key string) error |
| 19 | DeleteKeysWithPattern(ctx context.Context, pattern string) error |
| 20 | GetCacheList(ctx context.Context, key string) ([]domain.Check, error) |
| 21 | SetCacheList(ctx context.Context, key string, checks []domain.Check, ttl time.Duration) error |
| 22 | GetCountCache(ctx context.Context, key string) (int64, error) |
| 23 | SetCountCache(ctx context.Context, key string, count int64, ttl time.Duration) error |
| 24 | GenerateCacheKey(id interface{}) string |
| 25 | GeneratePaginationCacheKey(pagination domain.Pagination) string |
| 26 | GenerateCountCacheKey() string |
| 27 | } |
| 28 | |
| 29 | type checkCache struct { |
| 30 | client redis.Cmdable |
no outgoing calls
no test coverage detected