Skip to content

Commit c3fd590

Browse files
author
Nick Balestra
committed
Merge branch 'master' of github.com:nickbalestra/kv-storage
2 parents d841d17 + f86f50b commit c3fd590

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const storage = new StorageArea("cats", { credentials: { id, email, key } });
5151
### Storing values
5252

5353
Asynchronously stores the given value so that it can later be retrieved by the given key.
54-
Values types are automatically inferred and can be any of [String, ReadableStream, ArrayBuffer, FormData]
54+
Values types are automatically inferred and can be of type [`String`, `ReadableStream`, `ArrayBuffer`, `FormData`].
5555
The returned promise will fulfill with undefined on success.
5656

5757
```js
@@ -60,13 +60,13 @@ await storage.set("one-cat", "birman");
6060

6161
#### Options
6262

63-
Keys can be set to be automatically deleted at some time in the future:
63+
Keys can be set to expire:
6464

6565
- `exp`: seconds since epoch
6666
- `ttl`: seconds from now
6767

6868
```js
69-
await storage.set("one-cat", "birman", { ttl: 1558853089 });
69+
await storage.set("one-cat", "birman", { exp: 1558853089 });
7070
await storage.set("another-cat", "merican curl", { ttl: 60 });
7171
```
7272

0 commit comments

Comments
 (0)