You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Support distributed cache with olric
* feat: Support external distributed cache
* feat: Fix lint
* feat: Fix docker-compose to be able to build and tests on CI
* feat: Fix docker-compose and create directory for olric configuration
* feat: Fix docker-compose
* feat: Fix
* Update the doc
* feat: Update plantuml
Copy file name to clipboardExpand all lines: README.md
+19-7
Original file line number
Diff line number
Diff line change
@@ -70,8 +70,10 @@ default_cache:
70
70
- Authorization
71
71
cache_providers:
72
72
- all # Enable all providers by default
73
-
redis: # Redis configuration
73
+
redis: # Redis provider configuration
74
74
url: 'redis:6379'
75
+
olric: # Olric provider configuration
76
+
url: 'olric:3320'
75
77
regex:
76
78
exclude: 'ARegexHere' # Regex to exclude from cache
77
79
ssl_providers: # The {providers}.json to use
@@ -100,6 +102,7 @@ urls:
100
102
| `default_cache.headers` | List of headers to include to the cache | `- Authorization`<br/><br/>`- Content-Type`<br/><br/>`- X-Additional-Header` |
101
103
| `default_cache.cache_providers` | Your providers list to cache your data, by default it will use all systems | `- all`<br/><br/>`- ristretto`<br/><br/>`- redis` |
102
104
| `default_cache.redis.url` | The redis url, used if you enabled it in the provider section | `redis:6379` (container way) and `http://yourdomain.com:6379` (network way) |
105
+
| `default_cache.olric.url` | The olric url, used if you enabled it in the provider section | `olric:3320` (container way) and `http://yourdomain.com:3320` (network way) |
103
106
| `default_cache.regex.exclude` | The regex used to prevent paths being cached | `^[A-z]+.*$` |
104
107
| `ssl_providers` | List of your providers handling certificates | `- traefik`<br/><br/>`- nginx`<br/><br/>`- apache` |
105
108
| `urls.{your url or regex}` | List of your custom configuration depending each URL or regex | 'https:\/\/yourdomain.com' |
@@ -136,13 +139,13 @@ See the sequence for the minimal version below
The cache system sits on top of three providers at the moment. It provides an in-memory, redis and Olric cache systems because setting, getting, updating and deleting keys in these providers is as easy as it gets.
143
-
In order to do that, Redis and Olric providers need to be either on the same network as the Souin instance when using docker-compose or over the internet, then it will use by default in-memory to avoid network latency as much as possible.
144
-
Souin will return at first the in-memory response when it gives a non-empty response, then the olric followed by the redis one with same condition, or fallback to the reverse proxy otherwise.
145
-
Since 1.4.2, Souin supports [Olric](https://github.com/buraksezer/olric) to handle distributed cache.
145
+
The cache system sits on top of three providers at the moment. It provides an in-memory, redis and Olric cache systems because setting, getting, updating and deleting keys in these providers is as easy as it gets.
146
+
In order to do that, Redis and Olric providers need to be either on the same network as the Souin instance when using docker-compose or over the internet, then it will use by default in-memory to avoid network latency as much as possible.
147
+
Souin will return at first the in-memory response when it gives a non-empty response, then the olric followed by the redis one with same condition, or fallback to the reverse proxy otherwise.
148
+
Since 1.4.2, Souin supports [Olric](https://github.com/buraksezer/olric) to handle distributed cache.
146
149
147
150
### Cache invalidation
148
151
The cache invalidation is build for CRUD requests, if you're doing a GET HTTP request, it will serve the cached response when it exists, otherwise the reverse-proxy response will be served.
0 commit comments