Skip to content

Commit

Permalink
//
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed Apr 2, 2023
1 parent 63cb1f7 commit c6ff7d7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions params.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ const (
var (
SquelchItemNotInCache bool = true

DefaultExpireItem int = 300 // 5 minutes
DefaultMaxSize int64 = 16 * Megabyte
DefaultMaxItems int = 32
DefaultEvery int = 60 // 1 minute
DefaultExpireItem int = 300 // 5 minutes

// Max size for each item
DefaultMaxSize int64 = 16 * Megabyte

// Max amount of items
DefaultMaxItems int = 32

// Check interval by seconds
DefaultEvery int = 60 // 1 minute

// Mumber of items to buffer adding to the file cache.
NewCachePipeSize int = runtime.NumCPU() * 8
Expand Down

0 comments on commit c6ff7d7

Please sign in to comment.