Skip to content

Commit 744a403

Browse files
authored
Update redis-cache.md
Update change for this MR vuestorefront/redis-driver#2
1 parent b61519f commit 744a403

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/core/docs/integrations/redis-cache.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
:::

0 commit comments

Comments
 (0)