Skip to content

Commit 025f80d

Browse files
authored
Per-API Key Caches (#74)
* cache racing start in place * additional test * clean up debug logs * cleanup from self-review of PR * clean up annotations * test created * independant storages * changes from self-review of PR * make suffix required in the persistant stores * fix up tests * test for local storage * test for index * fix test typescript error
1 parent 2f117f7 commit 025f80d

28 files changed

+356
-174
lines changed

docs/js-client-sdk.chromestorageasyncstore._constructor_.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/js-client-sdk.chromestorageasyncstore.getentries.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/js-client-sdk.chromestorageasyncstore.isexpired.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/js-client-sdk.chromestorageasyncstore.isinitialized.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/js-client-sdk.chromestorageasyncstore.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

docs/js-client-sdk.chromestorageasyncstore.setentries.md

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@eppo/js-client-sdk](./js-client-sdk.md) &gt; [ChromeStorageEngine](./js-client-sdk.chromestorageengine.md) &gt; [(constructor)](./js-client-sdk.chromestorageengine._constructor_.md)
4+
5+
## ChromeStorageEngine.(constructor)
6+
7+
Constructs a new instance of the `ChromeStorageEngine` class
8+
9+
**Signature:**
10+
11+
```typescript
12+
constructor(storageArea: chrome.storage.StorageArea);
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| storageArea | chrome.storage.StorageArea | |
20+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@eppo/js-client-sdk](./js-client-sdk.md) &gt; [ChromeStorageEngine](./js-client-sdk.chromestorageengine.md) &gt; [getContentsJsonString](./js-client-sdk.chromestorageengine.getcontentsjsonstring.md)
4+
5+
## ChromeStorageEngine.getContentsJsonString property
6+
7+
**Signature:**
8+
9+
```typescript
10+
getContentsJsonString: () => Promise<string | null>;
11+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@eppo/js-client-sdk](./js-client-sdk.md) &gt; [ChromeStorageEngine](./js-client-sdk.chromestorageengine.md) &gt; [getMetaJsonString](./js-client-sdk.chromestorageengine.getmetajsonstring.md)
4+
5+
## ChromeStorageEngine.getMetaJsonString property
6+
7+
**Signature:**
8+
9+
```typescript
10+
getMetaJsonString: () => Promise<string | null>;
11+
```
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [@eppo/js-client-sdk](./js-client-sdk.md) &gt; [ChromeStorageEngine](./js-client-sdk.chromestorageengine.md)
4+
5+
## ChromeStorageEngine class
6+
7+
Chrome storage implementation of a string-valued store for storing a configuration and its metadata.
8+
9+
This serializes the entire configuration object into a string and then stores it to a single key within the object for another single top-level key. Same with metadata about the store (e.g., when it was last updated).
10+
11+
**Signature:**
12+
13+
```typescript
14+
export declare class ChromeStorageEngine implements IStringStorageEngine
15+
```
16+
**Implements:** IStringStorageEngine
17+
18+
## Constructors
19+
20+
| Constructor | Modifiers | Description |
21+
| --- | --- | --- |
22+
| [(constructor)(storageArea)](./js-client-sdk.chromestorageengine._constructor_.md) | | Constructs a new instance of the <code>ChromeStorageEngine</code> class |
23+
24+
## Properties
25+
26+
| Property | Modifiers | Type | Description |
27+
| --- | --- | --- | --- |
28+
| [getContentsJsonString](./js-client-sdk.chromestorageengine.getcontentsjsonstring.md) | | () =&gt; Promise&lt;string \| null&gt; | |
29+
| [getMetaJsonString](./js-client-sdk.chromestorageengine.getmetajsonstring.md) | | () =&gt; Promise&lt;string \| null&gt; | |
30+
| [setContentsJsonString](./js-client-sdk.chromestorageengine.setcontentsjsonstring.md) | | (configurationJsonString: string) =&gt; Promise&lt;void&gt; | |
31+
| [setMetaJsonString](./js-client-sdk.chromestorageengine.setmetajsonstring.md) | | (metaJsonString: string) =&gt; Promise&lt;void&gt; | |
32+

0 commit comments

Comments
 (0)