Skip to content

Commit

Permalink
docs: Comment the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
viccon committed Apr 6, 2024
1 parent 4badc01 commit 26bd7f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/basic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func main() {
// Time-to-live for cache entries.
ttl := 2 * time.Hour
// Percentage of entries to evict when the cache is full. Setting this
// to 0 will make writes noops if the cache has reached its capacity.
// to 0 will make set a no-op if the cache has reached its capacity.
evictionPercentage := 10

// Create a cache client with the specified configuration.
Expand Down
2 changes: 1 addition & 1 deletion examples/buffering/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func NewOrderAPI() *OrderAPI {
// Time-to-live for cache entries.
ttl := 2 * time.Hour
// Percentage of entries to evict when the cache is full. Setting this
// to 0 will make writes noops if the cache has reached its capacity.
// to 0 will make set a no-op if the cache has reached its capacity.
evictionPercentage := 10
// Set a minimum and maximum refresh delay for the sturdyc. This is
// used to spread out the refreshes for entries evenly over time.
Expand Down

0 comments on commit 26bd7f5

Please sign in to comment.