MCPcopy
hub / github.com/frain-dev/convoy / Cache

Interface Cache

cache/cache.go:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10)
11
12type 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
18func NewCache(cfg config.RedisConfiguration) (Cache, error) {
19 client, err := rdb.NewClientFromRedisConfig(cfg)

Callers 1

PreRunFunction · 0.95

Implementers 8

MemoryCachecache/memory/client.go
NoopCachecache/noop/noop.go
RedisCachecache/redis/client.go
MockCachemocks/cache.go
MockCacheMockRecordermocks/cache.go
mockCachepkg/cachedrepo/cachedrepo_test.go
hitCachepkg/cachedrepo/cachedrepo_test.go
CertCacheconfig/cert_cache.go

Calls

no outgoing calls

Tested by

no test coverage detected