Redis cache disconnect fallback

I’m using Apollo Server as a graphql wrapper over an existing REST API. I’m attempting to set up a Redis Cache for APQ, but I found the server cant be used when the cache is disconnected.
I’m instantiating the server like so:

const server = new ApolloServer({
  typeDefs,
  resolvers,
  persistedQueries: {
    new RedisCache({
      host: process.env.REDIS_HOST || "localhost",
      port: process.env.REDIS_PORT || 6379,
      maxmemory: process.env.REDIS_MEMORY || "10mb",
      "maxmemory-policy": "allkeys-lfu",
      retryStrategy: function(times) {
        var delay = Math.min(times * 50, 2000);
        return delay;
      }
  })
 }
});

Am I missing an obvious solution to this problem?how can i skip the cache when the cache is on error?