Skip to content

Commit

Permalink
feat(memory): migrate store to promise
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebachelier committed Jan 4, 2016
1 parent ec61bd1 commit 5794e33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ class MemoryStore {
}

getItem (key) {
return this._store[key] || null
return Promise.resolve(this._store[key] || null)
}

setItem (key, value) {
this._store[key] = value
return this
return Promise.resolve(value)
}

clear () {
this._store = {}
return this
return Promise.resolve()
}
}

Expand Down

0 comments on commit 5794e33

Please sign in to comment.