We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b43adb0 commit 89fa7d4Copy full SHA for 89fa7d4
1 file changed
apps/core/test/helper/redis-mock.helper.ts
@@ -1,9 +1,11 @@
1
import fs from 'node:fs'
2
-import { CacheService } from '~/processors/redis/cache.service'
3
-import IORedis from 'ioredis'
+
4
import type { Redis } from 'ioredis'
+import IORedis from 'ioredis'
5
import RedisMemoryServer from 'redis-memory-server'
6
7
+import { CacheService } from '~/processors/redis/cache.service'
8
9
/**
10
* 查找系统上的 redis-server 二进制文件
11
* 优先级:
@@ -62,6 +64,18 @@ export class MockCacheService {
62
64
public getClient() {
63
65
return this.redisClient
66
}
67
68
+ public waitForReady() {
69
+ return Promise.resolve()
70
+ }
71
72
+ public isReady() {
73
+ return true
74
75
76
+ public getStatus() {
77
+ return 'ready'
78
79
80
81
const createMockRedis = async () => {
0 commit comments