|
|
@ -111,7 +111,7 @@ const keyv = new Keyv({ store: lru }); |
|
|
|
You can namespace your Keyv instance to avoid key collisions and allow you to clear only a certain namespace while using the same database. |
|
|
|
|
|
|
|
```js |
|
|
|
const users = new Keyv('redis://user:pass@localhost:6379' { namespace: 'users' }); |
|
|
|
const users = new Keyv('redis://user:pass@localhost:6379', { namespace: 'users' }); |
|
|
|
const cache = new Keyv('redis://user:pass@localhost:6379', { namespace: 'cache' }); |
|
|
|
|
|
|
|
await users.set('foo', 'users'); // true |
|
|
|