We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd2aece commit 7953133Copy full SHA for 7953133
src/service/cache/service.ts
@@ -2,7 +2,6 @@ import type { KVNamespace } from '@cloudflare/workers-types'
2
import { createClient } from 'redis'
3
import type { RedisClientType } from 'redis'
4
import type { Environment } from '#/types/index'
5
-import { close } from 'fs'
6
7
export interface ICacheService {
8
get(key: string): Promise<{} | null>
@@ -36,9 +35,9 @@ export class CacheService implements ICacheService {
36
35
37
const client: RedisClientType = createClient({
38
url: this.#env.REDIS_URL,
39
- socket: {
40
- connectTimeout: 10000
41
- }
+ socket: {
+ connectTimeout: 10000
+ }
42
})
43
44
client.on('error', (err: Error) => {
0 commit comments