From 2a9c2cec27b4328e763229b5d5461f73315e4769 Mon Sep 17 00:00:00 2001 From: Simon Grondin Date: Tue, 16 Jul 2019 10:25:54 -0500 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 876fd25..bb8d52f 100644 --- a/README.md +++ b/README.md @@ -811,12 +811,14 @@ const limiter = new Bottleneck({ **Note:** If you are seeing a runtime error due to the `require()` function not being able to load `redis`/`ioredis`, then directly pass the module as the `Redis` option. Example: ```js -import Redis from 'ioredis' +import Redis from "ioredis" const limiter = new Bottleneck({ + id: "my-super-app", + datastore: "ioredis", clientOptions: { host: '12.34.56.78', port: 6379 }, Redis -}) +}); ``` Unfortunately, this is a side effect of having to disable inlining, which is necessary to make Bottleneck easy to use in the browser.