refactor(redis): consolidate Redis runtime and BullMQ services in DAL (#7393)
* refactor(redis): establish runtime and keyspace * refactor(redis): add capabilities and script registry * refactor(redis): centralize phase 3a stores * refactor(redis): migrate wechat qr login store * refactor(redis): move Redis access into DAL * refactor(redis): migrate lease repository * refactor(redis): migrate stop signal and stream resume repositories * refactor(redis): complete DAL migration * test(redis): complete DAL Redis test coverage * chore(redis): align pro lockfile importer * test(redis): update service and app redis mocks * chore(redis): align pro migration submodule * refactor(redis): consolidate cache migration * refactor(redis): convert runtime to class * chore(deps): update redis and tooling dependencies * refactor(redis): move BullMQ services into DAL * fix(redis): harden DAL checks and lifecycle * chore: fix bullmq to 5.52.2 * chore: bump deps * test(redis): mock captured BullMQ binding * lock * docs: consolidate DAL and WeChat designs * chore: remove DAL review artifacts --------- Co-authored-by: Archer <545436317@qq.com>
Showing
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
| ... | @@ -45,9 +45,12 @@ | ... | @@ -45,9 +45,12 @@ |
| "typescript-eslint": "catalog:lint", | "typescript-eslint": "catalog:lint", | ||
| "vitest": "catalog:" | "vitest": "catalog:" | ||
| }, | }, | ||
| "engines": { | "devEngines": { | ||
| "node": ">=20.19.0", | "runtime": { | ||
| "pnpm": "10.x" | "name": "node", | ||
| "version": "24.18.1", | |||
| "onFail": "download" | |||
| } | |||
| }, | }, | ||
| "packageManager": "pnpm@10.33.4" | "packageManager": "pnpm@10.33.4" | ||
| } | } |
packages/dal/package.json
0 → 100644
| { | |||
| "name": "@fastgpt/dal", | |||
| "version": "1.0.0", | |||
| "type": "module", | |||
| "exports": { | |||
| "./redis": "./redis/index.ts", | |||
| "./redis/adapter": "./redis/adapter.ts", | |||
| "./redis/bullmq": "./redis/bullmq/index.ts", | |||
| "./redis/bullmq/services/*": "./redis/bullmq/services/*.ts", | |||
| "./redis/caches": "./redis/caches/index.ts", | |||
| "./redis/types": "./redis/types.ts", | |||
| "./redis/runtime": "./redis/runtime/index.ts" | |||
| }, | |||
| "scripts": { | |||
| "test": "vitest run -c vitest.config.ts", | |||
| "test:watch": "vitest -c vitest.config.ts", | |||
| "test:integration:redis": "vitest run -c vitest.config.ts test/integrations/redis", | |||
| "typecheck": "tsc --noEmit --pretty" | |||
| }, | |||
| "engines": { | |||
| "node": ">=20.19.0", | |||
| "pnpm": "10.x" | |||
| }, | |||
| "dependencies": { | |||
| "@fastgpt/global": "workspace:*", | |||
| "bullmq": "5.52.2", | |||
| "ioredis": "^5.11.1", | |||
| "zod": "catalog:" | |||
| }, | |||
| "devDependencies": { | |||
| "@types/node": "catalog:", | |||
| "typescript": "catalog:", | |||
| "vitest": "catalog:" | |||
| } | |||
| } |
packages/dal/redis/adapter.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/dal/redis/bullmq/binding.ts
0 → 100644
packages/dal/redis/bullmq/close.ts
0 → 100644
packages/dal/redis/bullmq/constants.ts
0 → 100644
packages/dal/redis/bullmq/context.ts
0 → 100644
packages/dal/redis/bullmq/index.ts
0 → 100644
packages/dal/redis/bullmq/listeners.ts
0 → 100644
packages/dal/redis/bullmq/names.ts
0 → 100644
packages/dal/redis/bullmq/queue-manager.ts
0 → 100644
packages/dal/redis/bullmq/runtime.ts
0 → 100644
packages/dal/redis/bullmq/services/index.ts
0 → 100644
packages/dal/redis/bullmq/services/wechat.ts
0 → 100644
packages/dal/redis/bullmq/types.ts
0 → 100644
packages/dal/redis/bullmq/worker-manager.ts
0 → 100644
packages/dal/redis/caches/index.ts
0 → 100644
packages/dal/redis/caches/lease.ts
0 → 100644
packages/dal/redis/caches/outLinkStream.ts
0 → 100644
packages/dal/redis/caches/session.ts
0 → 100644
packages/dal/redis/caches/streamResume.ts
0 → 100644
packages/dal/redis/caches/systemVersion.ts
0 → 100644
packages/dal/redis/caches/teamPoint.ts
0 → 100644
packages/dal/redis/caches/teamQpm.ts
0 → 100644
packages/dal/redis/caches/teamVectorCount.ts
0 → 100644
packages/dal/redis/caches/wechatQrLogin.ts
0 → 100644
packages/dal/redis/index.ts
0 → 100644
packages/dal/redis/runtime/config.ts
0 → 100644
packages/dal/redis/runtime/connection.ts
0 → 100644
This diff is collapsed.
Click to expand it.
packages/dal/redis/runtime/errors.ts
0 → 100644
packages/dal/redis/runtime/index.ts
0 → 100644
packages/dal/redis/runtime/keyspace.ts
0 → 100644
packages/dal/redis/runtime/operation.ts
0 → 100644
packages/dal/redis/runtime/parse.ts
0 → 100644
packages/dal/redis/runtime/policy.ts
0 → 100644
packages/dal/redis/runtime/schema.ts
0 → 100644
packages/dal/redis/runtime/shutdown.ts
0 → 100644
packages/dal/redis/runtime/timeout.ts
0 → 100644
packages/dal/redis/runtime/validation.ts
0 → 100644
packages/dal/redis/types.ts
0 → 100644
packages/dal/test/global-setup.ts
0 → 100644
packages/dal/test/redis/adapter.test.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/dal/test/redis/bullmq.test.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/dal/test/redis/caches/lease.test.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/dal/tsconfig.json
0 → 100644
This diff is collapsed.
Click to expand it.
packages/dal/vitest.config.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
packages/service/common/metrics/redis.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment