-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
Showing
28 changed files
with
356 additions
and
174 deletions.
There are no files selected for viewing
21 changes: 0 additions & 21 deletions
21
docs/js-client-sdk.chromestorageasyncstore._constructor_.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
docs/js-client-sdk.chromestorageasyncstore.isinitialized.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [ChromeStorageEngine](./js-client-sdk.chromestorageengine.md) > [(constructor)](./js-client-sdk.chromestorageengine._constructor_.md) | ||
|
||
## ChromeStorageEngine.(constructor) | ||
|
||
Constructs a new instance of the `ChromeStorageEngine` class | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
constructor(storageArea: chrome.storage.StorageArea); | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| storageArea | chrome.storage.StorageArea | | | ||
|
11 changes: 11 additions & 0 deletions
11
docs/js-client-sdk.chromestorageengine.getcontentsjsonstring.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [ChromeStorageEngine](./js-client-sdk.chromestorageengine.md) > [getContentsJsonString](./js-client-sdk.chromestorageengine.getcontentsjsonstring.md) | ||
|
||
## ChromeStorageEngine.getContentsJsonString property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
getContentsJsonString: () => Promise<string | null>; | ||
``` |
11 changes: 11 additions & 0 deletions
11
docs/js-client-sdk.chromestorageengine.getmetajsonstring.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [ChromeStorageEngine](./js-client-sdk.chromestorageengine.md) > [getMetaJsonString](./js-client-sdk.chromestorageengine.getmetajsonstring.md) | ||
|
||
## ChromeStorageEngine.getMetaJsonString property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
getMetaJsonString: () => Promise<string | null>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [ChromeStorageEngine](./js-client-sdk.chromestorageengine.md) | ||
|
||
## ChromeStorageEngine class | ||
|
||
Chrome storage implementation of a string-valued store for storing a configuration and its metadata. | ||
|
||
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). | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export declare class ChromeStorageEngine implements IStringStorageEngine | ||
``` | ||
**Implements:** IStringStorageEngine | ||
## Constructors | ||
| Constructor | Modifiers | Description | | ||
| --- | --- | --- | | ||
| [(constructor)(storageArea)](./js-client-sdk.chromestorageengine._constructor_.md) | | Constructs a new instance of the <code>ChromeStorageEngine</code> class | | ||
## Properties | ||
| Property | Modifiers | Type | Description | | ||
| --- | --- | --- | --- | | ||
| [getContentsJsonString](./js-client-sdk.chromestorageengine.getcontentsjsonstring.md) | | () => Promise<string \| null> | | | ||
| [getMetaJsonString](./js-client-sdk.chromestorageengine.getmetajsonstring.md) | | () => Promise<string \| null> | | | ||
| [setContentsJsonString](./js-client-sdk.chromestorageengine.setcontentsjsonstring.md) | | (configurationJsonString: string) => Promise<void> | | | ||
| [setMetaJsonString](./js-client-sdk.chromestorageengine.setmetajsonstring.md) | | (metaJsonString: string) => Promise<void> | | | ||
11 changes: 11 additions & 0 deletions
11
docs/js-client-sdk.chromestorageengine.setcontentsjsonstring.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [ChromeStorageEngine](./js-client-sdk.chromestorageengine.md) > [setContentsJsonString](./js-client-sdk.chromestorageengine.setcontentsjsonstring.md) | ||
|
||
## ChromeStorageEngine.setContentsJsonString property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
setContentsJsonString: (configurationJsonString: string) => Promise<void>; | ||
``` |
11 changes: 11 additions & 0 deletions
11
docs/js-client-sdk.chromestorageengine.setmetajsonstring.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [ChromeStorageEngine](./js-client-sdk.chromestorageengine.md) > [setMetaJsonString](./js-client-sdk.chromestorageengine.setmetajsonstring.md) | ||
|
||
## ChromeStorageEngine.setMetaJsonString property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
setMetaJsonString: (metaJsonString: string) => Promise<void>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [IClientConfig](./js-client-sdk.iclientconfig.md) > [maxCacheAgeSeconds](./js-client-sdk.iclientconfig.maxcacheageseconds.md) | ||
|
||
## IClientConfig.maxCacheAgeSeconds property | ||
|
||
Maximum age, in seconds, previously cached values are considered valid until new values will be fetched (default: 0) | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
maxCacheAgeSeconds?: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [IClientConfig](./js-client-sdk.iclientconfig.md) > [updateOnFetch](./js-client-sdk.iclientconfig.updateonfetch.md) | ||
|
||
## IClientConfig.updateOnFetch property | ||
|
||
Sets how the configuration is updated after a successful fetch - always: immediately start using the new configuration - expired: immediately start using the new configuration only if the current one has expired - empty: only use the new configuration if the current one is both expired and uninitialized/empty | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
updateOnFetch?: ServingStoreUpdateStrategy; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@eppo/js-client-sdk](./js-client-sdk.md) > [IClientConfig](./js-client-sdk.iclientconfig.md) > [useExpiredCache](./js-client-sdk.iclientconfig.useexpiredcache.md) | ||
|
||
## IClientConfig.useExpiredCache property | ||
|
||
Whether initialization will be considered successfully complete if expired cache values are loaded. If false, initialization will always wait for a fetch if cached values are expired. (default: false) | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
useExpiredCache?: boolean; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.