Skip to content

Commit

Permalink
Merge pull request #797 from blackflux/dev
Browse files Browse the repository at this point in the history
[Gally]: master <- dev
  • Loading branch information
simlu committed Aug 17, 2019
2 parents 57c61bf + b781fe7 commit 16e3c56
Show file tree
Hide file tree
Showing 22 changed files with 843 additions and 719 deletions.
7 changes: 0 additions & 7 deletions .idea/jsLinters/eslint.xml

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ s3.getJsonObjectCached('large.json').then((json) => {
Note that you can specify the ttl and/or custom bucket on a per file basis by calling
e.g. `s3.getJsonObjectCached(FILE_NAME, { ttl, bucket })`. For exact method signatures please check the code.

## Other Function

- `resetCache`: Reset everything in cache

# Options

### bucket
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"homepage": "https://github.com/blackflux/s3-cached#readme",
"dependencies": {
"aws-sdk-wrap": "3.0.5",
"aws-sdk-wrap": "3.1.1",
"cache-manager": "2.10.0",
"cache-manager-fs": "1.0.8",
"lodash.defaults": "4.2.0",
Expand All @@ -66,7 +66,7 @@
"eslint": "6.1.0",
"js-gardener": "2.0.66",
"mocha": "6.2.0",
"nock": "10.0.6",
"node-tdd": "1.11.0",
"nyc": "14.1.1",
"semantic-release": "15.13.21"
},
Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ module.exports = (options) => {
bucket: opts.bucket,
modifications: [zlib.gunzipSync]
});
},
resetCache: async () => {
await new Promise(multiCache.reset);
}
};
};
32 changes: 0 additions & 32 deletions test/__cassette/invalid.json_recording.json

This file was deleted.

50 changes: 0 additions & 50 deletions test/__cassette/keysList.json.gz_recording.json

This file was deleted.

32 changes: 0 additions & 32 deletions test/__cassette/large.json.gz_recording.json

This file was deleted.

Loading

0 comments on commit 16e3c56

Please sign in to comment.