Skip to content

Commit

Permalink
Promisify API
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jul 7, 2017
1 parent a3f8101 commit 684cdc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ class Keyv {
}

get(key) {
return this.store.get(key);
return Promise.resolve(this.store.get(key));
}

set(key, value) {
return this.store.set(key, value);
return Promise.resolve(this.store.set(key, value));
}

delete(key) {
return this.store.delete(key);
return Promise.resolve(this.store.delete(key));
}
}

Expand Down

0 comments on commit 684cdc4

Please sign in to comment.