Skip to content

Commit

Permalink
get rid of (deprecated) request-promise in README example btw
Browse files Browse the repository at this point in the history
  • Loading branch information
ronjouch committed Feb 22, 2024
1 parent 31426a0 commit bffb41e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ npm install --save cachette

```javascript
const { WriteThroughCache } = require('cachette');
const request = require('request-promise');

// First, initialize the redis connection.
const cache = new WriteThroughCache(process.env.REDIS_URL);

async function fetchUrl(url) {
console.log('fetching', url);
const response = await request.get(url);
const response = await fetch(url);
console.log('fetched', url);
}

Expand Down

0 comments on commit bffb41e

Please sign in to comment.