@blaze-cache/core 0.4.0-beta.2 → 0.5.0-beta.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/README.md +131 -44
- package/dist/cache.d.ts +67 -0
- package/dist/cache.d.ts.map +1 -1
- package/dist/cache.js +608 -28
- package/dist/cache.js.map +1 -1
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js.map +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/multitab.d.ts +140 -0
- package/dist/multitab.d.ts.map +1 -0
- package/dist/multitab.js +306 -0
- package/dist/multitab.js.map +1 -0
- package/dist/persistence/indexeddb.d.ts.map +1 -1
- package/dist/persistence/indexeddb.js +8 -2
- package/dist/persistence/indexeddb.js.map +1 -1
- package/dist/query.d.ts +102 -0
- package/dist/query.d.ts.map +1 -0
- package/dist/query.js +116 -0
- package/dist/query.js.map +1 -0
- package/dist/reactivity.d.ts.map +1 -1
- package/dist/shared.d.ts +52 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +100 -0
- package/dist/shared.js.map +1 -0
- package/dist/types.d.ts +48 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +16 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +31 -0
- package/dist/utils.js.map +1 -1
- package/dist/wasm.d.ts +38 -0
- package/dist/wasm.d.ts.map +1 -1
- package/dist/wasm.js +189 -5
- package/dist/wasm.js.map +1 -1
- package/package.json +6 -2
- package/pkg/blaze_cache_wasm.d.ts +157 -0
- package/pkg/blaze_cache_wasm.js +460 -0
- package/pkg/blaze_cache_wasm_bg.wasm +0 -0
- package/pkg/blaze_cache_wasm_bg.wasm.d.ts +23 -0
- package/pkg/package.json +1 -1
package/pkg/blaze_cache_wasm.js
CHANGED
|
@@ -14,6 +14,21 @@ export class BlazeCache {
|
|
|
14
14
|
const ptr = this.__destroy_into_raw();
|
|
15
15
|
wasm.__wbg_blazecache_free(ptr, 0);
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Reserves `len` bytes in the shared arena and returns their absolute pointer.
|
|
19
|
+
*
|
|
20
|
+
* JS writes the payload into `new Uint8Array(memory.buffer, ptr, len)` and passes the same
|
|
21
|
+
* `(ptr, len)` to [`set_bytes`](Self::set_bytes), which adopts the reservation and stores
|
|
22
|
+
* it as the entry's value. No JS object is serialised: the bytes are already in linear
|
|
23
|
+
* memory. A reservation that is never adopted simply stays reserved for the lifetime of
|
|
24
|
+
* the instance (a fixed, bounded cost per abandoned `setBytes`).
|
|
25
|
+
* @param {number} len
|
|
26
|
+
* @returns {number}
|
|
27
|
+
*/
|
|
28
|
+
static bytesReserve(len) {
|
|
29
|
+
const ret = wasm.blazecache_bytesReserve(len);
|
|
30
|
+
return ret >>> 0;
|
|
31
|
+
}
|
|
17
32
|
/**
|
|
18
33
|
* Maximum number of entries — the `capacity` passed to `createCache`.
|
|
19
34
|
* @returns {number}
|
|
@@ -92,6 +107,30 @@ export class BlazeCache {
|
|
|
92
107
|
const ret = wasm.blazecache_dropTracking(this.__wbg_ptr);
|
|
93
108
|
return ret !== 0;
|
|
94
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Turns on the stable-id index before the first write (`storage: 'js'` only).
|
|
112
|
+
*
|
|
113
|
+
* The default mode never calls this, so the id map — and the hash on every insert and
|
|
114
|
+
* release it entails — is completely absent from the default hot path.
|
|
115
|
+
*/
|
|
116
|
+
enableIds() {
|
|
117
|
+
wasm.blazecache_enableIds(this.__wbg_ptr);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Turns on the ordered key, expiry and tag query indexes, backfilling any existing
|
|
121
|
+
* entries. A no-op when already enabled; the default cache never allocates them.
|
|
122
|
+
*/
|
|
123
|
+
enableIndexes() {
|
|
124
|
+
wasm.blazecache_enableIndexes(this.__wbg_ptr);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Metadata for every live entry with its stable id, for `entries()` in JS mode.
|
|
128
|
+
* @returns {Array<any>}
|
|
129
|
+
*/
|
|
130
|
+
entriesMeta() {
|
|
131
|
+
const ret = wasm.blazecache_entriesMeta(this.__wbg_ptr);
|
|
132
|
+
return ret;
|
|
133
|
+
}
|
|
95
134
|
/**
|
|
96
135
|
* Full snapshot — `{ key, value, ttlMs, tags }` for every live entry, oldest first.
|
|
97
136
|
*
|
|
@@ -103,6 +142,18 @@ export class BlazeCache {
|
|
|
103
142
|
const ret = wasm.blazecache_entries(this.__wbg_ptr);
|
|
104
143
|
return ret;
|
|
105
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* Metadata for one key with its stable id, for `entry()` in JS-authoritative mode.
|
|
147
|
+
* The `value` field is `undefined`: JS fills it from its own `Map<id, V>`.
|
|
148
|
+
* @param {string} key
|
|
149
|
+
* @returns {any}
|
|
150
|
+
*/
|
|
151
|
+
entryMeta(key) {
|
|
152
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
153
|
+
const len0 = WASM_VECTOR_LEN;
|
|
154
|
+
const ret = wasm.blazecache_entryMeta(this.__wbg_ptr, ptr0, len0);
|
|
155
|
+
return ret;
|
|
156
|
+
}
|
|
106
157
|
/**
|
|
107
158
|
* Full view of one key — value, remaining TTL (ms) and tags — or `undefined` when the key
|
|
108
159
|
* is missing or expired. Does not affect statistics or eviction state.
|
|
@@ -115,6 +166,45 @@ export class BlazeCache {
|
|
|
115
166
|
const ret = wasm.blazecache_entry(this.__wbg_ptr, ptr0, len0);
|
|
116
167
|
return ret;
|
|
117
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* Hit/miss + SIEVE visit for a JS-owned id. No key string crosses the boundary.
|
|
171
|
+
* @param {number} id
|
|
172
|
+
* @returns {boolean}
|
|
173
|
+
*/
|
|
174
|
+
getById(id) {
|
|
175
|
+
const ret = wasm.blazecache_getById(this.__wbg_ptr, id);
|
|
176
|
+
return ret !== 0;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Like [`get_bytes`](Self::get_bytes) but returns an **owned copy** as a `Uint8Array`.
|
|
180
|
+
*
|
|
181
|
+
* Safe to retain: the copy is outside the arena and survives eviction, reuse and
|
|
182
|
+
* `memory.grow`. This is the escape hatch for long-lived reads of byte values.
|
|
183
|
+
* @param {string} key
|
|
184
|
+
* @returns {Uint8Array | undefined}
|
|
185
|
+
*/
|
|
186
|
+
getBytesCopy(key) {
|
|
187
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
188
|
+
const len0 = WASM_VECTOR_LEN;
|
|
189
|
+
const ret = wasm.blazecache_getBytesCopy(this.__wbg_ptr, ptr0, len0);
|
|
190
|
+
return ret;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Returns `[ptr, len]` for a bytes entry, or `undefined` when the key is missing or was
|
|
194
|
+
* written with `set` instead of `setBytes`. A hit marks the entry visited for SIEVE.
|
|
195
|
+
*
|
|
196
|
+
* The coordinates are stable across `memory.grow`, but JS `ArrayBuffer` views are detached
|
|
197
|
+
* by it — rebuild the view from the current `wasmMemory().buffer` before each read, and
|
|
198
|
+
* never retain a view across an allocation. Use `getBytesCopy` for a long-lived snapshot.
|
|
199
|
+
* @param {string} key
|
|
200
|
+
* @returns {Array<any> | undefined}
|
|
201
|
+
*/
|
|
202
|
+
getBytes(key) {
|
|
203
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
204
|
+
const len0 = WASM_VECTOR_LEN;
|
|
205
|
+
const ret = wasm.blazecache_getBytes(this.__wbg_ptr, ptr0, len0);
|
|
206
|
+
return ret;
|
|
207
|
+
}
|
|
118
208
|
/**
|
|
119
209
|
* Batch get: looks up every key in one boundary crossing. Returns `JsValue::UNDEFINED`
|
|
120
210
|
* for missing or expired entries. Each hit marks the entry visited for SIEVE.
|
|
@@ -172,6 +262,15 @@ export class BlazeCache {
|
|
|
172
262
|
const ret = wasm.blazecache_get(this.__wbg_ptr, ptr0, len0);
|
|
173
263
|
return ret;
|
|
174
264
|
}
|
|
265
|
+
/**
|
|
266
|
+
* `true` when `id` is present and not expired.
|
|
267
|
+
* @param {number} id
|
|
268
|
+
* @returns {boolean}
|
|
269
|
+
*/
|
|
270
|
+
hasById(id) {
|
|
271
|
+
const ret = wasm.blazecache_hasById(this.__wbg_ptr, id);
|
|
272
|
+
return ret !== 0;
|
|
273
|
+
}
|
|
175
274
|
/**
|
|
176
275
|
* Batch has: returns `1` for each key that is present and not expired, `0` otherwise.
|
|
177
276
|
* @param {string[]} keys
|
|
@@ -224,6 +323,14 @@ export class BlazeCache {
|
|
|
224
323
|
const ret = wasm.blazecache_has(this.__wbg_ptr, ptr0, len0);
|
|
225
324
|
return ret !== 0;
|
|
226
325
|
}
|
|
326
|
+
/**
|
|
327
|
+
* `true` once the query indexes are live.
|
|
328
|
+
* @returns {boolean}
|
|
329
|
+
*/
|
|
330
|
+
indexesEnabled() {
|
|
331
|
+
const ret = wasm.blazecache_indexesEnabled(this.__wbg_ptr);
|
|
332
|
+
return ret !== 0;
|
|
333
|
+
}
|
|
227
334
|
/**
|
|
228
335
|
* Removes every entry carrying any of `tags`, returning the removed keys so the host can
|
|
229
336
|
* drop them from its persistence layer.
|
|
@@ -303,6 +410,15 @@ export class BlazeCache {
|
|
|
303
410
|
BlazeCacheFinalization.register(this, this.__wbg_ptr, this);
|
|
304
411
|
return this;
|
|
305
412
|
}
|
|
413
|
+
/**
|
|
414
|
+
* Observational presence check by id (no stats, no eviction bookkeeping).
|
|
415
|
+
* @param {number} id
|
|
416
|
+
* @returns {boolean}
|
|
417
|
+
*/
|
|
418
|
+
peekById(id) {
|
|
419
|
+
const ret = wasm.blazecache_peekById(this.__wbg_ptr, id);
|
|
420
|
+
return ret !== 0;
|
|
421
|
+
}
|
|
306
422
|
/**
|
|
307
423
|
* Same lookup as [`get`](Self::get) — **without** recording a hit or a miss, and without
|
|
308
424
|
* marking the entry visited for SIEVE.
|
|
@@ -335,12 +451,158 @@ export class BlazeCache {
|
|
|
335
451
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
336
452
|
}
|
|
337
453
|
}
|
|
454
|
+
/**
|
|
455
|
+
* Number of matching entries, ignoring paging. Also guarded by the indexes setup check.
|
|
456
|
+
* @param {string | null | undefined} prefix
|
|
457
|
+
* @param {string[]} tags_any
|
|
458
|
+
* @param {string[]} tags_all
|
|
459
|
+
* @param {string[]} tags_none
|
|
460
|
+
* @param {number | null} [ttl_min_ms]
|
|
461
|
+
* @param {number | null} [ttl_max_ms]
|
|
462
|
+
* @param {string[] | null} [keys]
|
|
463
|
+
* @returns {number}
|
|
464
|
+
*/
|
|
465
|
+
queryCount(prefix, tags_any, tags_all, tags_none, ttl_min_ms, ttl_max_ms, keys) {
|
|
466
|
+
try {
|
|
467
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
468
|
+
const val6 = +(isLikeNone(ttl_min_ms) ? 0 : ttl_min_ms);
|
|
469
|
+
const val7 = +(isLikeNone(ttl_max_ms) ? 0 : ttl_max_ms);
|
|
470
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4;
|
|
471
|
+
try {
|
|
472
|
+
ptr0 = isLikeNone(prefix) ? 0 : passStringToWasm0(prefix, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
473
|
+
len0 = WASM_VECTOR_LEN;
|
|
474
|
+
ptr1 = passArrayJsValueToWasm0(tags_any, wasm.__wbindgen_export);
|
|
475
|
+
len1 = WASM_VECTOR_LEN;
|
|
476
|
+
ptr2 = passArrayJsValueToWasm0(tags_all, wasm.__wbindgen_export);
|
|
477
|
+
len2 = WASM_VECTOR_LEN;
|
|
478
|
+
ptr3 = passArrayJsValueToWasm0(tags_none, wasm.__wbindgen_export);
|
|
479
|
+
len3 = WASM_VECTOR_LEN;
|
|
480
|
+
ptr4 = isLikeNone(keys) ? 0 : passArrayJsValueToWasm0(keys, wasm.__wbindgen_export);
|
|
481
|
+
len4 = WASM_VECTOR_LEN;
|
|
482
|
+
} catch (e) {
|
|
483
|
+
if (ptr4) { wasm.__wbindgen_export6(ptr4, len4); wasm.__wbindgen_export3(ptr4, len4 * 4, 4); }
|
|
484
|
+
if (ptr3) { wasm.__wbindgen_export6(ptr3, len3); wasm.__wbindgen_export3(ptr3, len3 * 4, 4); }
|
|
485
|
+
if (ptr2) { wasm.__wbindgen_export6(ptr2, len2); wasm.__wbindgen_export3(ptr2, len2 * 4, 4); }
|
|
486
|
+
if (ptr1) { wasm.__wbindgen_export6(ptr1, len1); wasm.__wbindgen_export3(ptr1, len1 * 4, 4); }
|
|
487
|
+
if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
|
|
488
|
+
throw e;
|
|
489
|
+
}
|
|
490
|
+
wasm.blazecache_queryCount(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, !isLikeNone(ttl_min_ms), val6, !isLikeNone(ttl_max_ms), val7, ptr4, len4);
|
|
491
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
492
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
493
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
494
|
+
if (r2) {
|
|
495
|
+
throw takeFromExternrefTable0(r1);
|
|
496
|
+
}
|
|
497
|
+
return r0 >>> 0;
|
|
498
|
+
} finally {
|
|
499
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Runs a bounded, metadata-only query. Returns
|
|
504
|
+
* `{ rows: [{ key, ttlMs, tags }], nextCursor, total }` or throws a setup error when
|
|
505
|
+
* indexes were never enabled. Values are deliberately absent: the host fetches them
|
|
506
|
+
* separately (and caps them) only when `includeValues` was requested.
|
|
507
|
+
*
|
|
508
|
+
* Every offset is passed through safe helpers — there are no raw pointers here and both
|
|
509
|
+
* crates remain `forbid(unsafe_code)`.
|
|
510
|
+
* @param {string | null | undefined} prefix
|
|
511
|
+
* @param {string[]} tags_any
|
|
512
|
+
* @param {string[]} tags_all
|
|
513
|
+
* @param {string[]} tags_none
|
|
514
|
+
* @param {number | null | undefined} ttl_min_ms
|
|
515
|
+
* @param {number | null | undefined} ttl_max_ms
|
|
516
|
+
* @param {string[] | null | undefined} keys
|
|
517
|
+
* @param {number} limit
|
|
518
|
+
* @param {string | null | undefined} cursor
|
|
519
|
+
* @param {boolean} with_total
|
|
520
|
+
* @returns {any}
|
|
521
|
+
*/
|
|
522
|
+
queryKeys(prefix, tags_any, tags_all, tags_none, ttl_min_ms, ttl_max_ms, keys, limit, cursor, with_total) {
|
|
523
|
+
try {
|
|
524
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
525
|
+
const val7 = +(isLikeNone(ttl_min_ms) ? 0 : ttl_min_ms);
|
|
526
|
+
const val8 = +(isLikeNone(ttl_max_ms) ? 0 : ttl_max_ms);
|
|
527
|
+
const val9 = +limit;
|
|
528
|
+
const val10 = +with_total;
|
|
529
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5;
|
|
530
|
+
try {
|
|
531
|
+
ptr0 = isLikeNone(prefix) ? 0 : passStringToWasm0(prefix, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
532
|
+
len0 = WASM_VECTOR_LEN;
|
|
533
|
+
ptr1 = passArrayJsValueToWasm0(tags_any, wasm.__wbindgen_export);
|
|
534
|
+
len1 = WASM_VECTOR_LEN;
|
|
535
|
+
ptr2 = passArrayJsValueToWasm0(tags_all, wasm.__wbindgen_export);
|
|
536
|
+
len2 = WASM_VECTOR_LEN;
|
|
537
|
+
ptr3 = passArrayJsValueToWasm0(tags_none, wasm.__wbindgen_export);
|
|
538
|
+
len3 = WASM_VECTOR_LEN;
|
|
539
|
+
ptr4 = isLikeNone(keys) ? 0 : passArrayJsValueToWasm0(keys, wasm.__wbindgen_export);
|
|
540
|
+
len4 = WASM_VECTOR_LEN;
|
|
541
|
+
ptr5 = isLikeNone(cursor) ? 0 : passStringToWasm0(cursor, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
542
|
+
len5 = WASM_VECTOR_LEN;
|
|
543
|
+
} catch (e) {
|
|
544
|
+
if (ptr5) { wasm.__wbindgen_export3(ptr5, len5 * 1, 1); }
|
|
545
|
+
if (ptr4) { wasm.__wbindgen_export6(ptr4, len4); wasm.__wbindgen_export3(ptr4, len4 * 4, 4); }
|
|
546
|
+
if (ptr3) { wasm.__wbindgen_export6(ptr3, len3); wasm.__wbindgen_export3(ptr3, len3 * 4, 4); }
|
|
547
|
+
if (ptr2) { wasm.__wbindgen_export6(ptr2, len2); wasm.__wbindgen_export3(ptr2, len2 * 4, 4); }
|
|
548
|
+
if (ptr1) { wasm.__wbindgen_export6(ptr1, len1); wasm.__wbindgen_export3(ptr1, len1 * 4, 4); }
|
|
549
|
+
if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
|
|
550
|
+
throw e;
|
|
551
|
+
}
|
|
552
|
+
wasm.blazecache_queryKeys(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, !isLikeNone(ttl_min_ms), val7, !isLikeNone(ttl_max_ms), val8, ptr4, len4, val9, ptr5, len5, val10);
|
|
553
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
554
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
555
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
556
|
+
if (r2) {
|
|
557
|
+
throw takeFromExternrefTable0(r1);
|
|
558
|
+
}
|
|
559
|
+
return takeFromExternrefTable0(r0);
|
|
560
|
+
} finally {
|
|
561
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Counts a miss for an absent key that was resolved locally, with no wasm lookup.
|
|
566
|
+
*/
|
|
567
|
+
recordMiss() {
|
|
568
|
+
wasm.blazecache_recordMiss(this.__wbg_ptr);
|
|
569
|
+
}
|
|
338
570
|
/**
|
|
339
571
|
* Zeroes the cumulative counters. Stored entries are untouched.
|
|
340
572
|
*/
|
|
341
573
|
resetStats() {
|
|
342
574
|
wasm.blazecache_resetStats(this.__wbg_ptr);
|
|
343
575
|
}
|
|
576
|
+
/**
|
|
577
|
+
* Adopts a reserved byte region as the value for `key`.
|
|
578
|
+
*
|
|
579
|
+
* Every coordinate is validated against the arena before ownership is taken: a stale or
|
|
580
|
+
* out-of-range `(ptr, len)` stores nothing and returns `false` instead of trapping.
|
|
581
|
+
* @param {string} key
|
|
582
|
+
* @param {number} ptr
|
|
583
|
+
* @param {number} len
|
|
584
|
+
* @param {number | null | undefined} ttl_ms
|
|
585
|
+
* @param {string[]} tags
|
|
586
|
+
* @returns {boolean}
|
|
587
|
+
*/
|
|
588
|
+
setBytes(key, ptr, len, ttl_ms, tags) {
|
|
589
|
+
const val3 = +ptr;
|
|
590
|
+
const val4 = +len;
|
|
591
|
+
const val5 = +(isLikeNone(ttl_ms) ? 0 : ttl_ms);
|
|
592
|
+
let ptr0, len0, ptr1, len1;
|
|
593
|
+
try {
|
|
594
|
+
ptr0 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
595
|
+
len0 = WASM_VECTOR_LEN;
|
|
596
|
+
ptr1 = passArrayJsValueToWasm0(tags, wasm.__wbindgen_export);
|
|
597
|
+
len1 = WASM_VECTOR_LEN;
|
|
598
|
+
} catch (e) {
|
|
599
|
+
if (ptr1) { wasm.__wbindgen_export6(ptr1, len1); wasm.__wbindgen_export3(ptr1, len1 * 4, 4); }
|
|
600
|
+
if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
|
|
601
|
+
throw e;
|
|
602
|
+
}
|
|
603
|
+
const ret = wasm.blazecache_setBytes(this.__wbg_ptr, ptr0, len0, val3, val4, !isLikeNone(ttl_ms), val5, ptr1, len1);
|
|
604
|
+
return ret !== 0;
|
|
605
|
+
}
|
|
344
606
|
/**
|
|
345
607
|
* Starts (or stops) recording entries the cache drops **by itself** — capacity
|
|
346
608
|
* evictions and TTL expirations — so the host can observe them via
|
|
@@ -354,6 +616,79 @@ export class BlazeCache {
|
|
|
354
616
|
setDropTracking(enabled) {
|
|
355
617
|
wasm.blazecache_setDropTracking(this.__wbg_ptr, enabled);
|
|
356
618
|
}
|
|
619
|
+
/**
|
|
620
|
+
* Batch form of [`set_meta`](Self::set_meta), returning one id per entry.
|
|
621
|
+
* @param {string[]} keys
|
|
622
|
+
* @param {Float64Array | number[]} ttl_ms
|
|
623
|
+
* @param {string[]} tags_flat
|
|
624
|
+
* @param {Uint32Array | number[]} tag_offsets
|
|
625
|
+
* @returns {Uint32Array}
|
|
626
|
+
*/
|
|
627
|
+
setManyMeta(keys, ttl_ms, tags_flat, tag_offsets) {
|
|
628
|
+
try {
|
|
629
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
630
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3;
|
|
631
|
+
try {
|
|
632
|
+
ptr0 = passArrayJsValueToWasm0(keys, wasm.__wbindgen_export);
|
|
633
|
+
len0 = WASM_VECTOR_LEN;
|
|
634
|
+
ptr1 = passArrayF64ToWasm0(ttl_ms, wasm.__wbindgen_export);
|
|
635
|
+
len1 = WASM_VECTOR_LEN;
|
|
636
|
+
ptr2 = passArrayJsValueToWasm0(tags_flat, wasm.__wbindgen_export);
|
|
637
|
+
len2 = WASM_VECTOR_LEN;
|
|
638
|
+
ptr3 = passArray32ToWasm0(tag_offsets, wasm.__wbindgen_export);
|
|
639
|
+
len3 = WASM_VECTOR_LEN;
|
|
640
|
+
} catch (e) {
|
|
641
|
+
if (ptr3) { wasm.__wbindgen_export3(ptr3, len3 * 4, 4); }
|
|
642
|
+
if (ptr2) { wasm.__wbindgen_export6(ptr2, len2); wasm.__wbindgen_export3(ptr2, len2 * 4, 4); }
|
|
643
|
+
if (ptr1) { wasm.__wbindgen_export3(ptr1, len1 * 8, 8); }
|
|
644
|
+
if (ptr0) { wasm.__wbindgen_export6(ptr0, len0); wasm.__wbindgen_export3(ptr0, len0 * 4, 4); }
|
|
645
|
+
throw e;
|
|
646
|
+
}
|
|
647
|
+
wasm.blazecache_setManyMeta(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
648
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
649
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
650
|
+
var v5 = getArrayU32FromWasm0(r0, r1).slice();
|
|
651
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
652
|
+
return v5;
|
|
653
|
+
} finally {
|
|
654
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Batch form of [`set_raw_with_tags`](Self::set_raw_with_tags): keys and tags both come
|
|
659
|
+
* from scratch buffers, values stay a `JsValue` array (one boundary crossing for all).
|
|
660
|
+
* @param {number} keys_ptr
|
|
661
|
+
* @param {Uint32Array | number[]} key_offsets
|
|
662
|
+
* @param {Uint32Array | number[]} key_lengths
|
|
663
|
+
* @param {any} values
|
|
664
|
+
* @param {Float64Array | number[]} ttl_ms
|
|
665
|
+
* @param {number} tag_ptr
|
|
666
|
+
* @param {number} tag_len
|
|
667
|
+
* @param {Uint32Array | number[]} tag_offsets
|
|
668
|
+
*/
|
|
669
|
+
setManyRaw(keys_ptr, key_offsets, key_lengths, values, ttl_ms, tag_ptr, tag_len, tag_offsets) {
|
|
670
|
+
const val5 = +keys_ptr;
|
|
671
|
+
const val6 = +tag_ptr;
|
|
672
|
+
const val7 = +tag_len;
|
|
673
|
+
let ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3;
|
|
674
|
+
try {
|
|
675
|
+
ptr0 = passArray32ToWasm0(key_offsets, wasm.__wbindgen_export);
|
|
676
|
+
len0 = WASM_VECTOR_LEN;
|
|
677
|
+
ptr1 = passArray32ToWasm0(key_lengths, wasm.__wbindgen_export);
|
|
678
|
+
len1 = WASM_VECTOR_LEN;
|
|
679
|
+
ptr2 = passArrayF64ToWasm0(ttl_ms, wasm.__wbindgen_export);
|
|
680
|
+
len2 = WASM_VECTOR_LEN;
|
|
681
|
+
ptr3 = passArray32ToWasm0(tag_offsets, wasm.__wbindgen_export);
|
|
682
|
+
len3 = WASM_VECTOR_LEN;
|
|
683
|
+
} catch (e) {
|
|
684
|
+
if (ptr3) { wasm.__wbindgen_export3(ptr3, len3 * 4, 4); }
|
|
685
|
+
if (ptr2) { wasm.__wbindgen_export3(ptr2, len2 * 8, 8); }
|
|
686
|
+
if (ptr1) { wasm.__wbindgen_export3(ptr1, len1 * 4, 4); }
|
|
687
|
+
if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 4, 4); }
|
|
688
|
+
throw e;
|
|
689
|
+
}
|
|
690
|
+
wasm.blazecache_setManyRaw(this.__wbg_ptr, val5, ptr0, len0, ptr1, len1, values, ptr2, len2, val6, val7, ptr3, len3);
|
|
691
|
+
}
|
|
357
692
|
/**
|
|
358
693
|
* Batch set: stores every key/value pair in one boundary crossing.
|
|
359
694
|
*
|
|
@@ -388,6 +723,75 @@ export class BlazeCache {
|
|
|
388
723
|
}
|
|
389
724
|
wasm.blazecache_setMany(this.__wbg_ptr, ptr0, len0, values, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
390
725
|
}
|
|
726
|
+
/**
|
|
727
|
+
* Inserts a sentinel-only entry and returns its stable id, for `storage: 'js'`.
|
|
728
|
+
*
|
|
729
|
+
* The value lives in a JS `Map<id, V>`; wasm keeps keys, TTL, tags, SIEVE and the id index.
|
|
730
|
+
* An overwrite keeps the same id so JS can replace the value in place.
|
|
731
|
+
* @param {string} key
|
|
732
|
+
* @param {number | null | undefined} ttl_ms
|
|
733
|
+
* @param {string[]} tags
|
|
734
|
+
* @returns {number}
|
|
735
|
+
*/
|
|
736
|
+
setMeta(key, ttl_ms, tags) {
|
|
737
|
+
const val3 = +(isLikeNone(ttl_ms) ? 0 : ttl_ms);
|
|
738
|
+
let ptr0, len0, ptr1, len1;
|
|
739
|
+
try {
|
|
740
|
+
ptr0 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
741
|
+
len0 = WASM_VECTOR_LEN;
|
|
742
|
+
ptr1 = passArrayJsValueToWasm0(tags, wasm.__wbindgen_export);
|
|
743
|
+
len1 = WASM_VECTOR_LEN;
|
|
744
|
+
} catch (e) {
|
|
745
|
+
if (ptr1) { wasm.__wbindgen_export6(ptr1, len1); wasm.__wbindgen_export3(ptr1, len1 * 4, 4); }
|
|
746
|
+
if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
|
|
747
|
+
throw e;
|
|
748
|
+
}
|
|
749
|
+
const ret = wasm.blazecache_setMeta(this.__wbg_ptr, ptr0, len0, !isLikeNone(ttl_ms), val3, ptr1, len1);
|
|
750
|
+
return ret >>> 0;
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Fast path for the overwhelmingly common single-tag write: no offset vector crosses
|
|
754
|
+
* the boundary, just the tag's `(ptr, len)` in the flat scratch.
|
|
755
|
+
* @param {number} ptr
|
|
756
|
+
* @param {number} len
|
|
757
|
+
* @param {any} value
|
|
758
|
+
* @param {number | null | undefined} ttl_ms
|
|
759
|
+
* @param {number} tag_ptr
|
|
760
|
+
* @param {number} tag_len
|
|
761
|
+
* @returns {boolean}
|
|
762
|
+
*/
|
|
763
|
+
setRawWithOneTag(ptr, len, value, ttl_ms, tag_ptr, tag_len) {
|
|
764
|
+
const ret = wasm.blazecache_setRawWithOneTag(this.__wbg_ptr, ptr, len, value, !isLikeNone(ttl_ms), isLikeNone(ttl_ms) ? 0 : ttl_ms, tag_ptr, tag_len);
|
|
765
|
+
return ret !== 0;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Tagged write whose key and tags are already encoded into the two shared scratch
|
|
769
|
+
* buffers by the host. This is the hot path for the "full-featured" workload: it avoids
|
|
770
|
+
* both `passStringToWasm0` for the key and the `Vec<String>` tag crossing.
|
|
771
|
+
*
|
|
772
|
+
* `tag_offsets` is the offset table from [`ensureTagScratch`]: `tag_offsets[i]..tag_offsets[i+1]`
|
|
773
|
+
* indexes the flat tag bytes. Non-monotonic or out-of-range pairs degrade to no tags,
|
|
774
|
+
* exactly like `setMany` — a hostile host can never trap the instance.
|
|
775
|
+
* @param {number} ptr
|
|
776
|
+
* @param {number} len
|
|
777
|
+
* @param {any} value
|
|
778
|
+
* @param {number | null | undefined} ttl_ms
|
|
779
|
+
* @param {number} tag_ptr
|
|
780
|
+
* @param {number} tag_len
|
|
781
|
+
* @param {Uint32Array | number[]} tag_offsets
|
|
782
|
+
* @returns {boolean}
|
|
783
|
+
*/
|
|
784
|
+
setRawWithTags(ptr, len, value, ttl_ms, tag_ptr, tag_len, tag_offsets) {
|
|
785
|
+
const val2 = +ptr;
|
|
786
|
+
const val3 = +len;
|
|
787
|
+
const val4 = +(isLikeNone(ttl_ms) ? 0 : ttl_ms);
|
|
788
|
+
const val5 = +tag_ptr;
|
|
789
|
+
const val6 = +tag_len;
|
|
790
|
+
const ptr0 = passArray32ToWasm0(tag_offsets, wasm.__wbindgen_export);
|
|
791
|
+
const len0 = WASM_VECTOR_LEN;
|
|
792
|
+
const ret = wasm.blazecache_setRawWithTags(this.__wbg_ptr, val2, val3, value, !isLikeNone(ttl_ms), val4, val5, val6, ptr0, len0);
|
|
793
|
+
return ret !== 0;
|
|
794
|
+
}
|
|
391
795
|
/**
|
|
392
796
|
* [`set`](Self::set) with a pre-encoded key and **no tags** — the untagged write fast
|
|
393
797
|
* path. Untagged writes skip the `Vec<String>` boundary crossing entirely; use
|
|
@@ -461,6 +865,27 @@ export class BlazeCache {
|
|
|
461
865
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
462
866
|
}
|
|
463
867
|
}
|
|
868
|
+
/**
|
|
869
|
+
* Resolves tag names to interned numeric ids, for hosts that want to pass ids to
|
|
870
|
+
* `queryKeys`. Unknown names map to `u32::MAX`.
|
|
871
|
+
* @param {string[]} tags
|
|
872
|
+
* @returns {Uint32Array}
|
|
873
|
+
*/
|
|
874
|
+
tagIds(tags) {
|
|
875
|
+
try {
|
|
876
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
877
|
+
const ptr0 = passArrayJsValueToWasm0(tags, wasm.__wbindgen_export);
|
|
878
|
+
const len0 = WASM_VECTOR_LEN;
|
|
879
|
+
wasm.blazecache_tagIds(retptr, this.__wbg_ptr, ptr0, len0);
|
|
880
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
881
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
882
|
+
var v2 = getArrayU32FromWasm0(r0, r1).slice();
|
|
883
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
884
|
+
return v2;
|
|
885
|
+
} finally {
|
|
886
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
887
|
+
}
|
|
888
|
+
}
|
|
464
889
|
/**
|
|
465
890
|
* Tags currently attached to `key` (empty array when the key is unknown).
|
|
466
891
|
* @param {string} key
|
|
@@ -518,6 +943,15 @@ export class BlazeCache {
|
|
|
518
943
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
519
944
|
}
|
|
520
945
|
}
|
|
946
|
+
/**
|
|
947
|
+
* The `WebAssembly.Memory` backing this instance, so JS can build `Uint8Array` views of
|
|
948
|
+
* regions reserved by [`bytes_reserve`](Self::bytes_reserve).
|
|
949
|
+
* @returns {any}
|
|
950
|
+
*/
|
|
951
|
+
static wasmMemory() {
|
|
952
|
+
const ret = wasm.blazecache_wasmMemory();
|
|
953
|
+
return ret;
|
|
954
|
+
}
|
|
521
955
|
}
|
|
522
956
|
if (Symbol.dispose) BlazeCache.prototype[Symbol.dispose] = BlazeCache.prototype.free;
|
|
523
957
|
|
|
@@ -542,6 +976,16 @@ export function ensureScratch(len) {
|
|
|
542
976
|
return ret >>> 0;
|
|
543
977
|
}
|
|
544
978
|
|
|
979
|
+
/**
|
|
980
|
+
* Reserves `len` bytes in the flat tag scratch and returns its absolute pointer.
|
|
981
|
+
* @param {number} len
|
|
982
|
+
* @returns {number}
|
|
983
|
+
*/
|
|
984
|
+
export function ensureTagScratch(len) {
|
|
985
|
+
const ret = wasm.ensureTagScratch(len);
|
|
986
|
+
return ret >>> 0;
|
|
987
|
+
}
|
|
988
|
+
|
|
545
989
|
/**
|
|
546
990
|
* Installs a panic hook that forwards Rust panics to `console.error`, making debugging in
|
|
547
991
|
* devtools far less painful. Safe to call more than once.
|
|
@@ -567,6 +1011,10 @@ function __wbg_get_imports() {
|
|
|
567
1011
|
const ret = arg0 === undefined;
|
|
568
1012
|
return ret;
|
|
569
1013
|
},
|
|
1014
|
+
__wbg___wbindgen_memory_17a1178bc3328ea3: function() {
|
|
1015
|
+
const ret = wasm.memory;
|
|
1016
|
+
return ret;
|
|
1017
|
+
},
|
|
570
1018
|
__wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
|
|
571
1019
|
const obj = arg1;
|
|
572
1020
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -613,6 +1061,10 @@ function __wbg_get_imports() {
|
|
|
613
1061
|
const ret = new Object();
|
|
614
1062
|
return ret;
|
|
615
1063
|
},
|
|
1064
|
+
__wbg_new_from_slice_b8daf545a41c6aa0: function(arg0, arg1) {
|
|
1065
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1066
|
+
return ret;
|
|
1067
|
+
},
|
|
616
1068
|
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
617
1069
|
const ret = arg0.now();
|
|
618
1070
|
return ret;
|
|
@@ -629,6 +1081,9 @@ function __wbg_get_imports() {
|
|
|
629
1081
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
630
1082
|
return ret;
|
|
631
1083
|
}, arguments); },
|
|
1084
|
+
__wbg_set_d2d33b52458e984a: function(arg0, arg1, arg2) {
|
|
1085
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1086
|
+
},
|
|
632
1087
|
__wbg_set_e4b9a833d288759a: function(arg0, arg1, arg2) {
|
|
633
1088
|
arg0[arg1] = arg2;
|
|
634
1089
|
},
|
|
@@ -706,6 +1161,11 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
706
1161
|
return result;
|
|
707
1162
|
}
|
|
708
1163
|
|
|
1164
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
1165
|
+
ptr = ptr >>> 0;
|
|
1166
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
1167
|
+
}
|
|
1168
|
+
|
|
709
1169
|
function getArrayU8FromWasm0(ptr, len) {
|
|
710
1170
|
ptr = ptr >>> 0;
|
|
711
1171
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
Binary file
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export const __wbg_blazecache_free: (a: number, b: number) => void;
|
|
5
|
+
export const blazecache_bytesReserve: (a: number) => number;
|
|
5
6
|
export const blazecache_capacity: (a: number) => number;
|
|
6
7
|
export const blazecache_clear: (a: number) => void;
|
|
7
8
|
export const blazecache_delete: (a: number, b: number, c: number) => number;
|
|
@@ -9,31 +10,53 @@ export const blazecache_deleteMany: (a: number, b: number, c: number, d: number)
|
|
|
9
10
|
export const blazecache_deleteRaw: (a: number, b: number, c: number) => number;
|
|
10
11
|
export const blazecache_drainDrops: (a: number) => any;
|
|
11
12
|
export const blazecache_dropTracking: (a: number) => number;
|
|
13
|
+
export const blazecache_enableIds: (a: number) => void;
|
|
14
|
+
export const blazecache_enableIndexes: (a: number) => void;
|
|
12
15
|
export const blazecache_entries: (a: number) => any;
|
|
16
|
+
export const blazecache_entriesMeta: (a: number) => any;
|
|
13
17
|
export const blazecache_entry: (a: number, b: number, c: number) => any;
|
|
18
|
+
export const blazecache_entryMeta: (a: number, b: number, c: number) => any;
|
|
14
19
|
export const blazecache_get: (a: number, b: number, c: number) => any;
|
|
20
|
+
export const blazecache_getById: (a: number, b: number) => number;
|
|
21
|
+
export const blazecache_getBytes: (a: number, b: number, c: number) => any;
|
|
22
|
+
export const blazecache_getBytesCopy: (a: number, b: number, c: number) => any;
|
|
15
23
|
export const blazecache_getMany: (a: number, b: number, c: number, d: number) => void;
|
|
16
24
|
export const blazecache_getRaw: (a: number, b: number, c: number) => any;
|
|
17
25
|
export const blazecache_has: (a: number, b: number, c: number) => number;
|
|
26
|
+
export const blazecache_hasById: (a: number, b: number) => number;
|
|
18
27
|
export const blazecache_hasMany: (a: number, b: number, c: number, d: number) => void;
|
|
19
28
|
export const blazecache_hasTag: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
29
|
+
export const blazecache_indexesEnabled: (a: number) => number;
|
|
20
30
|
export const blazecache_invalidateTags: (a: number, b: number, c: number, d: number) => void;
|
|
21
31
|
export const blazecache_keys: (a: number, b: number) => void;
|
|
22
32
|
export const blazecache_keysWithTag: (a: number, b: number, c: number, d: number) => void;
|
|
23
33
|
export const blazecache_new: (a: number) => number;
|
|
24
34
|
export const blazecache_peek: (a: number, b: number, c: number) => any;
|
|
35
|
+
export const blazecache_peekById: (a: number, b: number) => number;
|
|
25
36
|
export const blazecache_prune: (a: number, b: number) => void;
|
|
37
|
+
export const blazecache_queryCount: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => void;
|
|
38
|
+
export const blazecache_queryKeys: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number) => void;
|
|
39
|
+
export const blazecache_recordMiss: (a: number) => void;
|
|
26
40
|
export const blazecache_resetStats: (a: number) => void;
|
|
27
41
|
export const blazecache_set: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => void;
|
|
42
|
+
export const blazecache_setBytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
28
43
|
export const blazecache_setDropTracking: (a: number, b: number) => void;
|
|
29
44
|
export const blazecache_setMany: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
45
|
+
export const blazecache_setManyMeta: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
46
|
+
export const blazecache_setManyRaw: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number, i: number, j: number, k: number, l: number, m: number) => void;
|
|
47
|
+
export const blazecache_setMeta: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
30
48
|
export const blazecache_setRaw: (a: number, b: number, c: number, d: any, e: number, f: number) => void;
|
|
49
|
+
export const blazecache_setRawWithOneTag: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => number;
|
|
50
|
+
export const blazecache_setRawWithTags: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
31
51
|
export const blazecache_size: (a: number) => number;
|
|
32
52
|
export const blazecache_stats: (a: number, b: number) => void;
|
|
53
|
+
export const blazecache_tagIds: (a: number, b: number, c: number, d: number) => void;
|
|
33
54
|
export const blazecache_tagsOf: (a: number, b: number, c: number, d: number) => void;
|
|
34
55
|
export const blazecache_touch: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
35
56
|
export const blazecache_ttl: (a: number, b: number, c: number, d: number) => void;
|
|
57
|
+
export const blazecache_wasmMemory: () => any;
|
|
36
58
|
export const ensureScratch: (a: number) => number;
|
|
59
|
+
export const ensureTagScratch: (a: number) => number;
|
|
37
60
|
export const setPanicHook: () => void;
|
|
38
61
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
39
62
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|