Browse Source

README update

hotfix/0.7.1
Bryan Donovan 12 years ago
parent
commit
9b651cb04b
  1. 3
      README.md

3
README.md

@ -45,6 +45,7 @@ node-cache-manager handles easily and transparently.
### Single Store
```javascript
var cache_manager = require('cache-manager');
var redis_cache = cache_manager.caching({store: 'redis', db: 1, ttl: 100/*seconds*/});
var memory_cache = cache_manager.caching({store: 'memory', max: 100, ttl: 10/*seconds*/});
@ -88,7 +89,7 @@ node-cache-manager handles easily and transparently.
// Returning user from slow database.
// { id: 123, name: 'Bob' }
// { id: 123, name: 'Bob' }
```
### Multi-Store

Loading…
Cancel
Save