@fedify/redis 1.8.1-dev.1251 → 1.8.1-dev.1260
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/dist/codec.d.ts +1 -1
- package/dist/codec.js +1 -1
- package/dist/kv.d.ts +6 -6
- package/dist/kv.js +4 -4
- package/dist/mq.d.ts +2 -2
- package/dist/mq.js +1 -1
- package/package.json +3 -3
package/dist/codec.d.ts
CHANGED
package/dist/codec.js
CHANGED
package/dist/kv.d.ts
CHANGED
|
@@ -3,24 +3,24 @@ import { Codec } from "./codec.js";
|
|
|
3
3
|
import { KvKey, KvStore, KvStoreSetOptions } from "@fedify/fedify";
|
|
4
4
|
import { Redis, RedisKey } from "ioredis";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region kv.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Options for {@link RedisKvStore} class.
|
|
9
9
|
*/
|
|
10
10
|
interface RedisKvStoreOptions {
|
|
11
11
|
/**
|
|
12
|
-
* The prefix to use for all keys in the key
|
|
12
|
+
* The prefix to use for all keys in the key–value store in Redis.
|
|
13
13
|
* Defaults to `"fedify::"`.
|
|
14
14
|
*/
|
|
15
15
|
keyPrefix?: RedisKey;
|
|
16
16
|
/**
|
|
17
|
-
* The codec to use for encoding and decoding values in the key
|
|
17
|
+
* The codec to use for encoding and decoding values in the key–value store.
|
|
18
18
|
* Defaults to {@link JsonCodec}.
|
|
19
19
|
*/
|
|
20
20
|
codec?: Codec;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* A key
|
|
23
|
+
* A key–value store that uses Redis as the underlying storage.
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* ```ts ignore
|
|
@@ -37,9 +37,9 @@ interface RedisKvStoreOptions {
|
|
|
37
37
|
declare class RedisKvStore implements KvStore {
|
|
38
38
|
#private;
|
|
39
39
|
/**
|
|
40
|
-
* Creates a new Redis key
|
|
40
|
+
* Creates a new Redis key–value store.
|
|
41
41
|
* @param redis The Redis client to use.
|
|
42
|
-
* @param options The options for the key
|
|
42
|
+
* @param options The options for the key–value store.
|
|
43
43
|
*/
|
|
44
44
|
constructor(redis: Redis, options?: RedisKvStoreOptions);
|
|
45
45
|
get<T = unknown>(key: KvKey): Promise<T | undefined>;
|
package/dist/kv.js
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
import { JsonCodec } from "./codec.js";
|
|
5
5
|
import { Buffer } from "node:buffer";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region kv.ts
|
|
8
8
|
/**
|
|
9
|
-
* A key
|
|
9
|
+
* A key–value store that uses Redis as the underlying storage.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts ignore
|
|
@@ -26,9 +26,9 @@ var RedisKvStore = class {
|
|
|
26
26
|
#codec;
|
|
27
27
|
#textEncoder = new TextEncoder();
|
|
28
28
|
/**
|
|
29
|
-
* Creates a new Redis key
|
|
29
|
+
* Creates a new Redis key–value store.
|
|
30
30
|
* @param redis The Redis client to use.
|
|
31
|
-
* @param options The options for the key
|
|
31
|
+
* @param options The options for the key–value store.
|
|
32
32
|
*/
|
|
33
33
|
constructor(redis, options = {}) {
|
|
34
34
|
this.#redis = redis;
|
package/dist/mq.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Codec } from "./codec.js";
|
|
|
3
3
|
import { MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions } from "@fedify/fedify";
|
|
4
4
|
import { Redis, RedisKey } from "ioredis";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region mq.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Options for {@link RedisMessageQueue} class.
|
|
9
9
|
*/
|
|
@@ -33,7 +33,7 @@ interface RedisMessageQueueOptions {
|
|
|
33
33
|
*/
|
|
34
34
|
lockKey?: RedisKey;
|
|
35
35
|
/**
|
|
36
|
-
* The codec to use for encoding and decoding messages in the key
|
|
36
|
+
* The codec to use for encoding and decoding messages in the key–value store.
|
|
37
37
|
* Defaults to {@link JsonCodec}.
|
|
38
38
|
* @default {@link JsonCodec}
|
|
39
39
|
*/
|
package/dist/mq.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/redis",
|
|
3
|
-
"version": "1.8.1-dev.
|
|
3
|
+
"version": "1.8.1-dev.1260+ac1d5b5c",
|
|
4
4
|
"description": "Redis drivers for Fedify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fedify",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
18
|
"url": "git+https://github.com/fedify-dev/fedify.git",
|
|
19
|
-
"directory": "
|
|
19
|
+
"directory": "redis"
|
|
20
20
|
},
|
|
21
21
|
"bugs": {
|
|
22
22
|
"url": "https://github.com/fedify-dev/fedify/issues"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"ioredis": "^5.6.1",
|
|
65
|
-
"@fedify/fedify": "1.8.1-dev.
|
|
65
|
+
"@fedify/fedify": "1.8.1-dev.1260+ac1d5b5c"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@std/async": "npm:@jsr/std__async@^1.0.13",
|