Skip to content

Commit

Permalink
docs: Format comment
Browse files Browse the repository at this point in the history
  • Loading branch information
viccon committed Aug 8, 2024
1 parent e4122c8 commit c8bec8f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ type Client[T any] struct {

// New creates a new Client instance with the specified configuration.
//
// `capacity` defines the maximum number of entries that the cache can store.
// `numShards` Is used to set the number of shards. Has to be greater than 0.
// `ttl` Sets the time to live for each entry in the cache. Has to be greater than 0.
// `evictionPercentage` Percentage of items to evict when the cache exceeds its capacity.
// `opts` allows for additional configurations to be applied to the cache client.
// `capacity` defines the maximum number of entries that the cache can store.
// `numShards` Is used to set the number of shards. Has to be greater than 0.
// `ttl` Sets the time to live for each entry in the cache. Has to be greater than 0.
// `evictionPercentage` Percentage of items to evict when the cache exceeds its capacity.
// `opts` allows for additional configurations to be applied to the cache client.
func New[T any](capacity, numShards int, ttl time.Duration, evictionPercentage int, opts ...Option) *Client[T] {
client := &Client[T]{
inFlightMap: make(map[string]*inFlightCall[T]),
Expand Down

0 comments on commit c8bec8f

Please sign in to comment.