Skip to content

Commit

Permalink
Merge pull request #258 from dranikpg/patch-1
Browse files Browse the repository at this point in the history
Update cache.md
  • Loading branch information
ReneWerner87 committed May 23, 2022
2 parents c0318bf + b6312e4 commit f50bf6e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions api/middleware/cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ type Config struct {
//
// Default: false
StoreResponseHeaders bool

// Max number of bytes of response bodies simultaneously stored in cache. When limit is reached,
// entries with the nearest expiration are deleted to make room for new.
// 0 means no limit
//
// Default: 0
MaxBytes uint
}
```

Expand All @@ -116,9 +123,10 @@ var ConfigDefault = Config{
KeyGenerator: func(c *fiber.Ctx) string {
return utils.CopyString(c.Path())
},
ExpirationGenerator : nil,
ExpirationGenerator: nil,
StoreResponseHeaders: false,
Storage: nil,
Storage: nil,
MaxBytes: 0,
}
```

0 comments on commit f50bf6e

Please sign in to comment.