File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/core/docs/integrations Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export default {
2727 driver: [
2828 ' @vue-storefront/redis-cache' ,
2929 {
30+ version: " 1.0.0" , // Your versionning strategy
3031 defaultTimeout: 86400 ,
3132 redis: {
3233 host: ' localhost' ,
@@ -44,5 +45,9 @@ We can break down package configuration into two pieces:
4445
4546* ` invalidation ` - please refer to [ SSR Cache configuration] ( ../performance/ssr-cache.md ) page.
4647* ` driver ` - object containing:
48+ * ` version ` - Providing a version will permit to share to cache betweent all instance of NodeJS across your architecture.
4749 * ` defaultTimeout ` - number of seconds until records expire, even if not invalidated;
48- * ` redis ` - object directly passed to [ ioredis] ( https://github.com/luin/ioredis/blob/master/API.md#new-redisport-host-options ) ;
50+ * ` redis ` - object directly passed to [ ioredis] ( https://github.com/luin/ioredis/blob/master/API.md#new-redisport-host-options ) ;
51+
52+ :::warning if ` version ` is not provided a fallback version will be generated on * each* instance of NodeJS.
53+ :::
You can’t perform that action at this time.
0 commit comments