I hereby claim:
- I am bhague1281 on github.
- I am brianhague (https://keybase.io/brianhague) on keybase.
- I have a public key whose fingerprint is DC54 D3D9 B473 15CA 71C4 9833 DA1B 7AAD FF11 A208
To claim this, I am signing this object:
| const NodeCache = require('node-cache'); | |
| const cache = new NodeCache(); | |
| let data = { results: [] }; | |
| // using the cache module to add an object to the cache | |
| cache.set('my-pokemon', data, (err, success) => { | |
| // success will be true if successful | |
| }); |
| const request = require('request'); | |
| const API_ENDPOINT = 'http://pokeapi.co/api/v2/pokemon/'; | |
| request(API_ENDPOINT, (error, response, body) => { | |
| console.log(body); | |
| // { | |
| // "count": 811, | |
| // "previous": null, | |
| // "results": [ | |
| // { |
I hereby claim:
To claim this, I am signing this object: