File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff 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
4141Then 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" );
4846const redisOptions = {
4947 host: " 127.0.0.1"
5048};
@@ -54,19 +52,17 @@ const cache = new Cache(new Redis(redisOptions));
5452### Memcached
5553
5654Using 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
6361Then 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" );
7066const memcachedOptions = {
7167 poolSize: 10
7268};
You can’t perform that action at this time.
0 commit comments