Skip to content

Commit

Permalink
Fix interface comments
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Pillitteri <[email protected]>
  • Loading branch information
56quarters committed Jan 16, 2024
1 parent 4a5881f commit 1ed254c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ type RemoteCacheClient interface {
GetMulti(ctx context.Context, keys []string, opts ...Option) map[string][]byte

// SetAsync enqueues an asynchronous operation to store a key into a cache.
// Returns an error in case it fails to enqueue the operation. In case the
// underlying async operation will fail, the error will be tracked/logged.
// In case the underlying async operation fails, the error will be tracked/logged.
SetAsync(key string, value []byte, ttl time.Duration)

// SetMultiAsync enqueues asynchronous operations to store a keys and values
// into a cache. Returns an error in case it fails to enqueue the operation. In
// case the underlying async operations fail, the error will be tracked/logged.
// into a cache. In case the underlying async operations fail, the error will
// be tracked/logged.
SetMultiAsync(data map[string][]byte, ttl time.Duration)

// Delete deletes a key from a cache.
Expand Down

0 comments on commit 1ed254c

Please sign in to comment.