Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/core/docs/integrations/redis-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default {
driver: [
'@vue-storefront/redis-cache',
{
version: "1.0.0", // Your versionning strategy
defaultTimeout: 86400,
redis: {
host: 'localhost',
Expand All @@ -44,5 +45,9 @@ We can break down package configuration into two pieces:

* `invalidation` - please refer to [SSR Cache configuration](../performance/ssr-cache.md) page.
* `driver` - object containing:
* `version` - Providing a version will permit to share to cache betweent all instance of NodeJS across your architecture.
* `defaultTimeout` - number of seconds until records expire, even if not invalidated;
* `redis` - object directly passed to [ioredis](https://github.com/luin/ioredis/blob/master/API.md#new-redisport-host-options);
* `redis` - object directly passed to [ioredis](https://github.com/luin/ioredis/blob/master/API.md#new-redisport-host-options);

:::warning if `version` is not provided a fallback version will be generated on *each* instance of NodeJS.
:::