Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
Add note on cache value shape to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
divmain committed Feb 15, 2017
1 parent 5cd9e89 commit ed5ce35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ However, `setCacheStrategy` is provided to allow you to integrate your own cachi
- `get` should accept a single argument, the key, and return a Promise resolving to a cached value. If no cached value is found, the Promise should resolve to `null`.
- `set` should accept two arguments, a key and its value, and return a Promise that resolves when the `set` operation has completed.

All values, both those returned from `get` and passed to `set`, will be Arrays with both string and integer elements. Keep that in mind if you need to serialize the data for your cache backend.

**Example:**

```javascript
Expand Down

0 comments on commit ed5ce35

Please sign in to comment.