# All files / services index.ts

0% Statements 0/1
0% Branches 0/1
0% Functions 0/1
0% Lines 0/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38

     /**
     * 优化模块统一导出
     * 包含：OSS、Redis、队列、日志、限流、缓存
     */

    // OSS 云存储
    export { ossService } from './oss.service';

    // Redis 缓存
    export { redisService } from './redis.service';

    // 任务队列（已弃用，改为数据库驱动）

    // 日志系统
    export { log, httpLogger } from './logger.service';
    export { default as logger } from './logger.service';

    // 限流中间件
    export {
      createRateLimiter,
      apiRateLimiter,
      loginRateLimiter,
      smsRateLimiter,
      ttsRateLimiter,
      uploadRateLimiter,
    } from '../middleware/rate-limiter';

    // 缓存中间件
    export {
      createCache,
      clearCache,
      userCache,
      voiceListCache,
      bookDetailCache,
      hotBooksCache,
      memberBenefitsCache,
    } from '../middleware/cache';