From b75abf04b217af83ce723b223fad8a268b670485 Mon Sep 17 00:00:00 2001 From: "H. Can Celik" Date: Sat, 15 Jun 2024 16:16:25 +0300 Subject: [PATCH] Fix markdown formatting --- docs/middleware/cache.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/middleware/cache.md b/docs/middleware/cache.md index cd59046154..e2612d1645 100644 --- a/docs/middleware/cache.md +++ b/docs/middleware/cache.md @@ -52,7 +52,7 @@ app.Use(cache.New(cache.Config{ return time.Second * time.Duration(newCacheTime) }, KeyGenerator: func(c fiber.Ctx) string { - return utils.CopyString(c.Path()) + return utils.CopyString(c.Path()) }, })) @@ -75,7 +75,7 @@ app.Use(cache.New(cache.Config{ ## Config | Property | Type | Description | Default | -|:---------------------|:-----------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------| +| :------------------- | :--------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------- | | Next | `func(fiber.Ctx) bool` | Next defines a function that is executed before creating the cache entry and can be used to execute the request without cache creation. If an entry already exists, it will be used. If you want to completely bypass the cache functionality in certain cases, you should use the [skip middleware](skip.md). | `nil` | | Expiration | `time.Duration` | Expiration is the time that a cached response will live. | `1 * time.Minute` | | CacheHeader | `string` | CacheHeader is the header on the response header that indicates the cache status, with the possible return values "hit," "miss," or "unreachable." | `X-Cache` | @@ -96,9 +96,9 @@ app.Use(cache.New(cache.Config{ var ConfigDefault = Config{ Next: nil, Expiration: 1 * time.Minute, - CacheHeader: "X-Cache", + CacheHeader: "X-Cache", CacheControl: false, - CacheInvalidator: nil, + CacheInvalidator: nil, KeyGenerator: func(c fiber.Ctx) string { return utils.CopyString(c.Path()) },