@baeta/cache-ioredis 2.0.0-next.17 → 2.0.0-next.18

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @baeta/cache-ioredis
2
2
 
3
+ ## 2.0.0-next.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`fd2419f`](https://github.com/andreisergiu98/baeta/commit/fd2419fc692b1c1682da6e8c0d0e4383753b2271)]:
8
+ - @baeta/cache@2.0.0-next.18
9
+
3
10
  ## 2.0.0-next.17
4
11
 
5
12
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import { CacheClient, CacheClientArgs, CacheClientOptions, CacheClientSaveOptions, ItemCacheKey, QueryCacheIndexKey, QueryCacheKey } from "@baeta/cache";
2
2
  import { RedisScripts } from "@baeta/cache-redis-common";
3
3
  import Redis, { Cluster } from "ioredis";
4
- //#region lib/cache-client.d.ts
5
- interface RedisCacheClientOptions extends CacheClientOptions {
4
+ export interface RedisCacheClientOptions extends CacheClientOptions {
6
5
  /**
7
6
  * Maximum total size of commands in a single pipeline batch. If the batch exceeds this size, it will be executed immediately.
8
7
  * @defaultValue 50 * 1024 * 1024 (50MB)
@@ -19,7 +18,7 @@ interface RedisCacheClientOptions extends CacheClientOptions {
19
18
  */
20
19
  maxCommandKeysLimit?: number;
21
20
  }
22
- declare class RedisCacheClient extends CacheClient {
21
+ export declare class RedisCacheClient extends CacheClient {
23
22
  redis: Redis | Cluster;
24
23
  protected maxPipelineSizeLimit: number;
25
24
  protected maxPipelineCommandLimit: number;
@@ -35,6 +34,4 @@ declare class RedisCacheClient extends CacheClient {
35
34
  saveQuery<QueryMetadata>(key: QueryCacheKey, indexes: QueryCacheIndexKey[], metadata: QueryMetadata, options: CacheClientArgs<QueryMetadata>): Promise<void>;
36
35
  deleteQueries(indexes: QueryCacheIndexKey[]): Promise<void>;
37
36
  }
38
- //#endregion
39
- export { RedisCacheClient, RedisCacheClientOptions };
40
37
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { CacheClient } from "@baeta/cache";
2
2
  import { assertNoPipelineErrors, batchPipeline, createRedisScripts } from "@baeta/cache-redis-common";
3
3
  import { doBatched } from "@baeta/cache/sdk";
4
- //#region lib/cache-client.ts
4
+ // lib/cache-client.ts
5
5
  const INDEX_BUFFER_MS = 1e3;
6
6
  const MAX_PIPELINE_SIZE_LIMIT = 52428800;
7
7
  const MAX_PIPELINE_COMMAND_LIMIT = 1e5;
@@ -127,7 +127,6 @@ var RedisCacheClient = class extends CacheClient {
127
127
  if (typeof result !== "number") throw new Error(`Unexpected non-number result from Redis script: ${typeof result}`);
128
128
  }
129
129
  };
130
- //#endregion
131
130
  export { RedisCacheClient };
132
131
 
133
132
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baeta/cache-ioredis",
3
- "version": "2.0.0-next.17",
3
+ "version": "2.0.0-next.18",
4
4
  "description": "ioredis cache adapter for Baeta.",
5
5
  "keywords": [
6
6
  "baeta",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@baeta/builder": "^0.0.0",
62
- "@baeta/cache": "^2.0.0-next.17",
62
+ "@baeta/cache": "^2.0.0-next.18",
63
63
  "@baeta/testing": "^0.0.0",
64
64
  "@baeta/tests-cache-clients": "^0.0.0",
65
65
  "@baeta/tsconfig": "^0.0.0",
@@ -67,7 +67,7 @@
67
67
  "typescript": "^6.0.0"
68
68
  },
69
69
  "peerDependencies": {
70
- "@baeta/cache": "^2.0.0-next.17",
70
+ "@baeta/cache": "^2.0.0-next.18",
71
71
  "ioredis": "^6.0.0"
72
72
  },
73
73
  "ava": {