@devvit/redis 0.11.18-next-2025-06-16-21-11-30-e09027048.0 → 0.11.18-next-2025-06-16-21-37-07-571d0625a.0
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/RedisClient.d.ts +0 -1
- package/RedisClient.d.ts.map +1 -1
- package/RedisClient.js +40 -39
- package/package.json +6 -6
package/RedisClient.d.ts
CHANGED
|
@@ -56,7 +56,6 @@ export declare class TxClient implements TxClientLike {
|
|
|
56
56
|
*/
|
|
57
57
|
export declare class RedisClient implements RedisClientLike {
|
|
58
58
|
#private;
|
|
59
|
-
readonly scope: RedisKeyScope;
|
|
60
59
|
readonly global: Omit<RedisClientLike, 'global'>;
|
|
61
60
|
constructor(scope: RedisKeyScope);
|
|
62
61
|
watch(...keys: string[]): Promise<TxClientLike>;
|
package/RedisClient.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RedisClient.d.ts","sourceRoot":"","sources":["../src/RedisClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,QAAQ,EAEb,KAAK,aAAa,EAClB,KAAK,OAAO,EAEZ,KAAK,aAAa,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAA4B,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIzE,OAAO,KAAK,EACV,eAAe,EACf,WAAW,IAAI,eAAe,EAC9B,UAAU,EACV,YAAY,EACZ,aAAa,EACd,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAM/C,qBAAa,QAAS,YAAW,YAAY;;gBAK/B,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ;IAMzE,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAKvC,KAAK,IAAI,OAAO,CAA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AAC,CAAC;IAKrD,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAKpD,KAAK,CACT,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,EAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GACzB,OAAO,CAAC,aAAa,CAAC;IAKnB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAKrC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQnE,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQlC,QAAQ,CACZ,GAAG,EAAE,MAAM,EACX,GAAG,IAAI,EACH,EAAE,GACF,eAAe,GACf,CAAC,GAAG,eAAe,EAAE,GAAG,eAAe,CAAC,GACxC,CAAC,GAAG,eAAe,EAAE,GAAG,eAAe,EAAE,GAAG,eAAe,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,GACvF,OAAO,CAAC,MAAM,EAAE,CAAC;CA+ErB;AAmCD,eAAO,MAAM,KAAK,aAA8C,CAAC"}
|
package/RedisClient.js
CHANGED
|
@@ -9,7 +9,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
9
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
|
-
var _TxClient_instances, _TxClient_storage, _TxClient_transactionId, _TxClient_txnStartMetadata, _TxClient_metadata_get, _RedisClient_instances, _RedisClient_storage, _RedisClient_metadata_get;
|
|
12
|
+
var _TxClient_instances, _TxClient_storage, _TxClient_transactionId, _TxClient_txnStartMetadata, _TxClient_metadata_get, _RedisClient_instances, _RedisClient_storage, _RedisClient_scope, _RedisClient_metadata_get;
|
|
13
13
|
import { RedisAPIDefinition, } from '@devvit/protos';
|
|
14
14
|
import { BitfieldOverflowBehavior, RedisKeyScope } from '@devvit/protos';
|
|
15
15
|
import { context } from '@devvit/server';
|
|
@@ -269,8 +269,9 @@ export class RedisClient {
|
|
|
269
269
|
constructor(scope) {
|
|
270
270
|
_RedisClient_instances.add(this);
|
|
271
271
|
_RedisClient_storage.set(this, void 0);
|
|
272
|
+
_RedisClient_scope.set(this, void 0);
|
|
272
273
|
__classPrivateFieldSet(this, _RedisClient_storage, getDevvitConfig().use(RedisAPIDefinition), "f");
|
|
273
|
-
this
|
|
274
|
+
__classPrivateFieldSet(this, _RedisClient_scope, scope, "f");
|
|
274
275
|
this.global =
|
|
275
276
|
scope === RedisKeyScope.INSTALLATION ? new RedisClient(RedisKeyScope.GLOBAL) : this;
|
|
276
277
|
}
|
|
@@ -280,7 +281,7 @@ export class RedisClient {
|
|
|
280
281
|
}
|
|
281
282
|
async get(key) {
|
|
282
283
|
try {
|
|
283
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").Get({ key, scope: this
|
|
284
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").Get({ key, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, {
|
|
284
285
|
...__classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get),
|
|
285
286
|
'throw-redis-nil': { values: ['true'] },
|
|
286
287
|
});
|
|
@@ -295,7 +296,7 @@ export class RedisClient {
|
|
|
295
296
|
}
|
|
296
297
|
async getBuffer(key) {
|
|
297
298
|
try {
|
|
298
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").GetBytes({ key, scope: this
|
|
299
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").GetBytes({ key, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, {
|
|
299
300
|
...__classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get),
|
|
300
301
|
'throw-redis-nil': { values: ['true'] },
|
|
301
302
|
});
|
|
@@ -322,42 +323,42 @@ export class RedisClient {
|
|
|
322
323
|
nx: options?.nx === true && !options.xx,
|
|
323
324
|
xx: options?.xx === true && !options.nx,
|
|
324
325
|
expiration: expiration || 0,
|
|
325
|
-
scope: this
|
|
326
|
+
scope: __classPrivateFieldGet(this, _RedisClient_scope, "f"),
|
|
326
327
|
}, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
327
328
|
return response.value;
|
|
328
329
|
}
|
|
329
330
|
async exists(...keys) {
|
|
330
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").Exists({ keys, scope: this
|
|
331
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").Exists({ keys, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
331
332
|
return response.existingKeys;
|
|
332
333
|
}
|
|
333
334
|
async del(...keys) {
|
|
334
|
-
await __classPrivateFieldGet(this, _RedisClient_storage, "f").Del({ keys, scope: this
|
|
335
|
+
await __classPrivateFieldGet(this, _RedisClient_storage, "f").Del({ keys, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
335
336
|
}
|
|
336
337
|
async incrBy(key, value) {
|
|
337
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").IncrBy({ key, value, scope: this
|
|
338
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").IncrBy({ key, value, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
338
339
|
return response.value;
|
|
339
340
|
}
|
|
340
341
|
async getRange(key, start, end) {
|
|
341
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").GetRange({ key, start, end, scope: this
|
|
342
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").GetRange({ key, start, end, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
342
343
|
return response !== null ? response.value : response;
|
|
343
344
|
}
|
|
344
345
|
async setRange(key, offset, value) {
|
|
345
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").SetRange({ key, offset, value, scope: this
|
|
346
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").SetRange({ key, offset, value, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
346
347
|
return response.value;
|
|
347
348
|
}
|
|
348
349
|
async strLen(key) {
|
|
349
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").Strlen({ key, scope: this
|
|
350
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").Strlen({ key, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
350
351
|
return response.value;
|
|
351
352
|
}
|
|
352
353
|
async expire(key, seconds) {
|
|
353
|
-
await __classPrivateFieldGet(this, _RedisClient_storage, "f").Expire({ key, seconds, scope: this
|
|
354
|
+
await __classPrivateFieldGet(this, _RedisClient_storage, "f").Expire({ key, seconds, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
354
355
|
}
|
|
355
356
|
async expireTime(key) {
|
|
356
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ExpireTime({ key, scope: this
|
|
357
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ExpireTime({ key, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
357
358
|
return response.value;
|
|
358
359
|
}
|
|
359
360
|
async zAdd(key, ...members) {
|
|
360
|
-
return (await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZAdd({ key, members, scope: this
|
|
361
|
+
return (await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZAdd({ key, members, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get))).value;
|
|
361
362
|
}
|
|
362
363
|
async zRange(key, start, stop, options) {
|
|
363
364
|
// eslint-disable-next-line
|
|
@@ -385,27 +386,27 @@ export class RedisClient {
|
|
|
385
386
|
throw new Error(`zRange parsing error: 'limit' only allowed when 'options.by' is 'lex' or 'score'`);
|
|
386
387
|
}
|
|
387
388
|
}
|
|
388
|
-
return (await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZRange({ key: { key: key }, start: start + '', stop: stop + '', ...opts, scope: this
|
|
389
|
+
return (await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZRange({ key: { key: key }, start: start + '', stop: stop + '', ...opts, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get))).members;
|
|
389
390
|
}
|
|
390
391
|
async zRem(key, members) {
|
|
391
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZRem({ key: { key }, members, scope: this
|
|
392
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZRem({ key: { key }, members, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
392
393
|
return response.value;
|
|
393
394
|
}
|
|
394
395
|
async zRemRangeByLex(key, min, max) {
|
|
395
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZRemRangeByLex({ key: { key }, min, max, scope: this
|
|
396
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZRemRangeByLex({ key: { key }, min, max, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
396
397
|
return response.value;
|
|
397
398
|
}
|
|
398
399
|
async zRemRangeByRank(key, start, stop) {
|
|
399
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZRemRangeByRank({ key: { key }, start, stop, scope: this
|
|
400
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZRemRangeByRank({ key: { key }, start, stop, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
400
401
|
return response.value;
|
|
401
402
|
}
|
|
402
403
|
async zRemRangeByScore(key, min, max) {
|
|
403
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZRemRangeByScore({ key: { key }, min, max, scope: this
|
|
404
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZRemRangeByScore({ key: { key }, min, max, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
404
405
|
return response.value;
|
|
405
406
|
}
|
|
406
407
|
async zScore(key, member) {
|
|
407
408
|
try {
|
|
408
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZScore({ key: { key }, member, scope: this
|
|
409
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZScore({ key: { key }, member, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, {
|
|
409
410
|
...__classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get),
|
|
410
411
|
'throw-redis-nil': { values: ['true'] },
|
|
411
412
|
});
|
|
@@ -420,7 +421,7 @@ export class RedisClient {
|
|
|
420
421
|
}
|
|
421
422
|
async zRank(key, member) {
|
|
422
423
|
try {
|
|
423
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZRank({ key: { key }, member, scope: this
|
|
424
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZRank({ key: { key }, member, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, {
|
|
424
425
|
...__classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get),
|
|
425
426
|
'throw-redis-nil': { values: ['true'] },
|
|
426
427
|
});
|
|
@@ -434,36 +435,36 @@ export class RedisClient {
|
|
|
434
435
|
}
|
|
435
436
|
}
|
|
436
437
|
async zIncrBy(key, member, value) {
|
|
437
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZIncrBy({ key, member, value, scope: this
|
|
438
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZIncrBy({ key, member, value, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
438
439
|
return response !== null ? response.value : response;
|
|
439
440
|
}
|
|
440
441
|
async mGet(keys) {
|
|
441
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").MGet({ keys, scope: this
|
|
442
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").MGet({ keys, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
442
443
|
return response !== null ? response.values.map((value) => value || null) : response;
|
|
443
444
|
}
|
|
444
445
|
async mSet(keyValues) {
|
|
445
446
|
const kv = Object.entries(keyValues).map(([key, value]) => ({ key, value }));
|
|
446
|
-
await __classPrivateFieldGet(this, _RedisClient_storage, "f").MSet({ kv, scope: this
|
|
447
|
+
await __classPrivateFieldGet(this, _RedisClient_storage, "f").MSet({ kv, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
447
448
|
}
|
|
448
449
|
async zCard(key) {
|
|
449
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZCard({ key, scope: this
|
|
450
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZCard({ key, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
450
451
|
return response !== null ? response.value : response;
|
|
451
452
|
}
|
|
452
453
|
async zScan(key, cursor, pattern, count) {
|
|
453
|
-
const request = { key, cursor, pattern, count, scope: this
|
|
454
|
+
const request = { key, cursor, pattern, count, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") };
|
|
454
455
|
return await __classPrivateFieldGet(this, _RedisClient_storage, "f").ZScan(request, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
455
456
|
}
|
|
456
457
|
async type(key) {
|
|
457
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").Type({ key: key, scope: this
|
|
458
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").Type({ key: key, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
458
459
|
return response !== null ? response.value : response;
|
|
459
460
|
}
|
|
460
461
|
async rename(key, newKey) {
|
|
461
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").Rename({ key, newKey, scope: this
|
|
462
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").Rename({ key, newKey, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
462
463
|
return response.result;
|
|
463
464
|
}
|
|
464
465
|
async hGet(key, field) {
|
|
465
466
|
try {
|
|
466
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HGet({ key, field, scope: this
|
|
467
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HGet({ key, field, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, {
|
|
467
468
|
...__classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get),
|
|
468
469
|
'throw-redis-nil': { values: ['true'] },
|
|
469
470
|
});
|
|
@@ -477,42 +478,42 @@ export class RedisClient {
|
|
|
477
478
|
}
|
|
478
479
|
}
|
|
479
480
|
async hMGet(key, fields) {
|
|
480
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HMGet({ key, fields, scope: this
|
|
481
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HMGet({ key, fields, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
481
482
|
return response !== null ? response.values.map((value) => value || null) : response;
|
|
482
483
|
}
|
|
483
484
|
async hSet(key, fieldValues) {
|
|
484
485
|
const fv = Object.entries(fieldValues).map(([field, value]) => ({ field, value }));
|
|
485
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HSet({ key, fv, scope: this
|
|
486
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HSet({ key, fv, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
486
487
|
return response.value;
|
|
487
488
|
}
|
|
488
489
|
async hSetNX(key, field, value) {
|
|
489
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HSetNX({ key, field, value, scope: this
|
|
490
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HSetNX({ key, field, value, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
490
491
|
return response.success;
|
|
491
492
|
}
|
|
492
493
|
async hGetAll(key) {
|
|
493
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HGetAll({ key, scope: this
|
|
494
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HGetAll({ key, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
494
495
|
return response !== null ? response.fieldValues : response;
|
|
495
496
|
}
|
|
496
497
|
async hDel(key, fields) {
|
|
497
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HDel({ key, fields, scope: this
|
|
498
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HDel({ key, fields, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
498
499
|
return response.value;
|
|
499
500
|
}
|
|
500
501
|
async hScan(key, cursor, pattern, count) {
|
|
501
|
-
const request = { key, cursor, pattern, count, scope: this
|
|
502
|
+
const request = { key, cursor, pattern, count, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") };
|
|
502
503
|
return await __classPrivateFieldGet(this, _RedisClient_storage, "f").HScan(request, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
503
504
|
}
|
|
504
505
|
async hKeys(key) {
|
|
505
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HKeys({ key, scope: this
|
|
506
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HKeys({ key, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
506
507
|
return response !== null ? response.keys : response;
|
|
507
508
|
}
|
|
508
509
|
async hIncrBy(key, field, value) {
|
|
509
|
-
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HIncrBy({ key, field, value, scope: this
|
|
510
|
+
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HIncrBy({ key, field, value, scope: __classPrivateFieldGet(this, _RedisClient_scope, "f") }, __classPrivateFieldGet(this, _RedisClient_instances, "a", _RedisClient_metadata_get));
|
|
510
511
|
return response.value;
|
|
511
512
|
}
|
|
512
513
|
async hLen(key) {
|
|
513
514
|
const response = await __classPrivateFieldGet(this, _RedisClient_storage, "f").HLen({
|
|
514
515
|
key,
|
|
515
|
-
scope: this
|
|
516
|
+
scope: __classPrivateFieldGet(this, _RedisClient_scope, "f"),
|
|
516
517
|
});
|
|
517
518
|
return response.value;
|
|
518
519
|
}
|
|
@@ -581,7 +582,7 @@ export class RedisClient {
|
|
|
581
582
|
return response.results;
|
|
582
583
|
}
|
|
583
584
|
}
|
|
584
|
-
_RedisClient_storage = new WeakMap(), _RedisClient_instances = new WeakSet(), _RedisClient_metadata_get = function _RedisClient_metadata_get() {
|
|
585
|
+
_RedisClient_storage = new WeakMap(), _RedisClient_scope = new WeakMap(), _RedisClient_instances = new WeakSet(), _RedisClient_metadata_get = function _RedisClient_metadata_get() {
|
|
585
586
|
return context.debug.metadata;
|
|
586
587
|
};
|
|
587
588
|
function toBehaviorProto(behavior) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/redis",
|
|
3
|
-
"version": "0.11.18-next-2025-06-16-21-
|
|
3
|
+
"version": "0.11.18-next-2025-06-16-21-37-07-571d0625a.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
},
|
|
24
24
|
"types": "./index.d.ts",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@devvit/protos": "0.11.18-next-2025-06-16-21-
|
|
26
|
+
"@devvit/protos": "0.11.18-next-2025-06-16-21-37-07-571d0625a.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@devvit/server": "*"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@devvit/repo-tools": "0.11.18-next-2025-06-16-21-
|
|
33
|
-
"@devvit/server": "0.11.18-next-2025-06-16-21-
|
|
34
|
-
"@devvit/tsconfig": "0.11.18-next-2025-06-16-21-
|
|
32
|
+
"@devvit/repo-tools": "0.11.18-next-2025-06-16-21-37-07-571d0625a.0",
|
|
33
|
+
"@devvit/server": "0.11.18-next-2025-06-16-21-37-07-571d0625a.0",
|
|
34
|
+
"@devvit/tsconfig": "0.11.18-next-2025-06-16-21-37-07-571d0625a.0",
|
|
35
35
|
"eslint": "9.11.1",
|
|
36
36
|
"typescript": "5.8.3",
|
|
37
37
|
"vitest": "1.6.1"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"directory": "dist"
|
|
41
41
|
},
|
|
42
42
|
"source": "./src/index.ts",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "ca8f8b828e57a6530cd9072104e3401c0c1f2522"
|
|
44
44
|
}
|