Skip to content

Commit 958c3fa

Browse files
committed
Update README
1 parent 35b553f commit 958c3fa

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,17 @@ size of the library.
3232

3333
### Redis
3434

35-
To use Redis driver, you must first install the [redis][redis-url] module:
35+
To use Redis driver, you must first install the [redis][redis-url] driver:
3636

3737
```bash
38-
npm install --save redis
38+
npm install --save @verdigris/nitrous-driver-redis
3939
```
4040

4141
Then import the Redis driver and pass it to Cache constructor:
4242

4343
```javascript
44-
const {
45-
Cache,
46-
drivers: { Redis }
47-
} = require("@verdigris/nitrous");
44+
const { Cache } = require("@verdigris/nitrous");
45+
const Redis = require("@verdigris/nitrous-driver-redis");
4846
const redisOptions = {
4947
host: "127.0.0.1"
5048
};
@@ -54,19 +52,17 @@ const cache = new Cache(new Redis(redisOptions));
5452
### Memcached
5553

5654
Using the Memcached driver is similar to Redis example. First install the
57-
[memcached][memcached-url] module:
55+
[memcached][memcached-url] driver:
5856

5957
```bash
60-
npm install --save memcached
58+
npm install --save @verdigris/nitrous-driver-memcached
6159
```
6260

6361
Then import the Memcached driver:
6462

6563
```javascript
66-
const {
67-
Cache,
68-
drivers: { Memcached }
69-
} = require("@verdigris/nitrous");
64+
const { Cache } = require("@verdigris/nitrous");
65+
const Memcached = require("@verdigris/nitrous-driver-memcached");
7066
const memcachedOptions = {
7167
poolSize: 10
7268
};

0 commit comments

Comments
 (0)