Skip to content

Commit

Permalink
feat(cache): add read operation from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebachelier committed Jan 4, 2016
1 parent 79d1390 commit c0744af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export default function cache (config = {}) {
if (!useCache) {
return next()
}

const value = store.getItem(req.url)

if (value) {
}

const promise = next()
Expand Down

0 comments on commit c0744af

Please sign in to comment.