polystore 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/home.html +7 -9
- package/package.json +1 -1
- package/src/index.js +1 -1
package/assets/home.html
CHANGED
|
@@ -150,7 +150,7 @@ const value = await store.get("key1");
|
|
|
150
150
|
<p>
|
|
151
151
|
At
|
|
152
152
|
<a href="https://bundlephobia.com/package/polystore" target="_blank"
|
|
153
|
-
>just <strong>2.
|
|
153
|
+
>just <strong>2.4kb</strong></a
|
|
154
154
|
>
|
|
155
155
|
(min+gzip), the impact on your app loading time is minimal.
|
|
156
156
|
</p>
|
|
@@ -304,16 +304,14 @@ console.log(await store.entries());
|
|
|
304
304
|
</div>
|
|
305
305
|
</div>
|
|
306
306
|
<div>
|
|
307
|
-
<pre><code class="language-js">
|
|
308
|
-
const store = kv(new Map());
|
|
307
|
+
<pre><code class="language-js">await store.get("key"); // null
|
|
309
308
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
console.log(await auth.entries());
|
|
313
|
-
// [["key1", "value1"]]
|
|
309
|
+
await store.set("key", "value", { expires: "1s" });
|
|
310
|
+
await store.get("key"); // "value"
|
|
314
311
|
|
|
315
|
-
|
|
316
|
-
|
|
312
|
+
await sleep(2000);
|
|
313
|
+
|
|
314
|
+
await store.get("key"); // null</code></pre>
|
|
317
315
|
</div>
|
|
318
316
|
</section>
|
|
319
317
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polystore",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "A small compatibility layer for many popular KV stores like localStorage, Redis, FileSystem, etc.",
|
|
5
5
|
"homepage": "https://github.com/franciscop/polystore",
|
|
6
6
|
"repository": "https://github.com/franciscop/polystore.git",
|
package/src/index.js
CHANGED