-
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.
- Loading branch information
Showing
13 changed files
with
454 additions
and
100 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -34,4 +34,8 @@ bunfig.toml | |
|
||
# Local | ||
lab/ | ||
lab.ts | ||
lab.ts | ||
mydatabase*/ | ||
|
||
# Pup data | ||
.pup |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@cross/kv", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"exports": { | ||
".": "./mod.ts" | ||
}, | ||
|
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
export const LOCK_DEFAULT_MAX_RETRIES = 32; | ||
export const LOCK_DEFAULT_INITIAL_RETRY_INTERVAL_MS = 20; // Increased with itself on each retry, so the actual retry interval is 20, 40, 60 etc. 32 and 20 become about 10 seconds total. | ||
export const LOCK_DEFAULT_MAX_RETRIES = 15; | ||
export const LOCK_DEFAULT_INITIAL_RETRY_INTERVAL_MS = 100; // Increased with itself on each retry, so the actual retry interval is 20, 40, 60 etc. 32 and 20 become about 10 seconds total. | ||
export const LOCK_STALE_TIMEOUT_S = 60_000; | ||
|
||
export const SUPPORTED_LEDGER_VERSIONS = ["ALPH"]; | ||
|
||
export const LEDGER_BASE_OFFSET = 1_024; | ||
|
||
export const LEDGER_PREFETCH_BYTES = 1_024; | ||
export const LEDGER_MAX_READ_FAILURES = 10; | ||
|
||
export const LEDGER_PREFETCH_BYTES = 16000; | ||
|
||
export const SYNC_INTERVAL_MS = 1_000; |
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.