MCPcopy Index your code
hub / github.com/devaccuracy/ledgerforge / Delete

Method Delete

internal/cache/cache.go:54–54  ·  view source on GitHub ↗

Delete removes a value from the cache based on the provided key. Parameters: - ctx: The context for managing the request lifecycle. - key: The cache key to be deleted. Returns an error if the key cannot be deleted.

(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

52 // - key: The cache key to be deleted.
53 // Returns an error if the key cannot be deleted.
54 Delete(ctx context.Context, key string) error
55}
56
57// RedisCache implements the Cache interface, using Redis as the underlying cache store.

Callers 7

TestDeleteFunction · 0.95
CreateMonitorMethod · 0.65
UpdateMonitorMethod · 0.65
DeleteMonitorMethod · 0.65
RevokeAPIKeyMethod · 0.65
DeleteMethod · 0.65
DropCollectionMethod · 0.65

Implementers 3

mockCachedatabase/transactions_test.go
mockCacheRecondatabase/reconciliation_test.go
RedisCacheinternal/cache/cache.go

Calls

no outgoing calls

Tested by 1

TestDeleteFunction · 0.76