| 10 | ) |
| 11 | |
| 12 | type Cache interface { |
| 13 | Set(ctx context.Context, key string, data interface{}, expiration time.Duration) error |
| 14 | Get(ctx context.Context, key string, data interface{}) error |
| 15 | Delete(ctx context.Context, key string) error |
| 16 | } |
| 17 | |
| 18 | func NewCache(cfg config.RedisConfiguration) (Cache, error) { |
| 19 | client, err := rdb.NewClientFromRedisConfig(cfg) |
no outgoing calls
no test coverage detected