# Redis cache Enterprise

Paid feature

This feature is part of the Enterprise version. Please contact our Sales team (opens new window) if you'd like to use it in your project.

# Introduction

This package provides integration with Redis (opens new window). For more information about this topic, please refer to SSR Cache page.

# Installation

Install required packages:

yarn add @vue-storefront/cache
yarn add @vsf-enterprise/redis-cache

Register @vue-storefront/cache module with following configuration:

// nuxt.config.js

export default {
  modules: [
    ['@vue-storefront/cache/nuxt', {
      invalidation: {
        // Invalidation options
      },
      driver: [
        '@vsf-enterprise/redis-cache',
        {
          defaultTimeout: 86400,
          redis: {
            host: 'localhost',
            port: 6379,
            password: 'password'
          }
        }
      ]
    }]
  ]
};

We can break down package configuration into two pieces: