@forklaunch/core 0.2.6 → 0.2.7
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/lib/jest.config.d.ts.map +1 -1
- package/lib/jest.config.js +0 -2
- package/lib/src/http/guards/isForklaunchRouter.d.ts +4 -0
- package/lib/src/http/guards/isForklaunchRouter.d.ts.map +1 -0
- package/lib/src/http/guards/isForklaunchRouter.js +7 -0
- package/lib/src/http/guards/isTypedHandler.d.ts +1 -1
- package/lib/src/http/guards/isTypedHandler.d.ts.map +1 -1
- package/lib/src/http/handlers/typedAuthHandler.d.ts +5 -0
- package/lib/src/http/handlers/typedAuthHandler.d.ts.map +1 -0
- package/lib/src/http/handlers/typedAuthHandler.js +3 -0
- package/lib/src/http/handlers/typedHandler.d.ts +0 -6
- package/lib/src/http/handlers/typedHandler.d.ts.map +1 -1
- package/lib/src/http/index.d.ts +2 -0
- package/lib/src/http/index.d.ts.map +1 -1
- package/lib/src/http/index.js +2 -0
- package/lib/src/http/middleware/request/auth.middleware.d.ts +3 -18
- package/lib/src/http/middleware/request/auth.middleware.d.ts.map +1 -1
- package/lib/src/http/middleware/request/auth.middleware.js +104 -69
- package/lib/src/http/openApiV3Generator/openApiV3Generator.js +1 -1
- package/lib/src/http/router/expressLikeRouter.d.ts.map +1 -1
- package/lib/src/http/router/expressLikeRouter.js +4 -23
- package/lib/src/http/types/apiDefinition.types.d.ts +36 -13
- package/lib/src/http/types/apiDefinition.types.d.ts.map +1 -1
- package/lib/src/http/types/contractDetails.types.d.ts +53 -11
- package/lib/src/http/types/contractDetails.types.d.ts.map +1 -1
- package/lib/src/http/types/expressLikeRouter.types.d.ts +1 -1
- package/lib/src/http/types/expressLikeRouter.types.d.ts.map +1 -1
- package/lib/src/http/types/typedHandler.types.d.ts +10 -0
- package/lib/src/http/types/typedHandler.types.d.ts.map +1 -0
- package/lib/tests/expressLikeRouterInstantiation.test.js +47 -2
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/LICENSE +0 -21
- package/lib/dist/cache/index.d.ts +0 -4
- package/lib/dist/cache/index.d.ts.map +0 -1
- package/lib/dist/cache/index.js +0 -3
- package/lib/dist/cache/interfaces/ttlCache.interface.d.ts +0 -2
- package/lib/dist/cache/interfaces/ttlCache.interface.d.ts.map +0 -1
- package/lib/dist/cache/redisTtlCache.d.ts +0 -353
- package/lib/dist/cache/redisTtlCache.d.ts.map +0 -1
- package/lib/dist/cache/redisTtlCache.js +0 -98
- package/lib/dist/cache/types/ttlCacheRecord.types.d.ts +0 -2
- package/lib/dist/cache/types/ttlCacheRecord.types.d.ts.map +0 -1
- package/lib/dist/cache/types/ttlCacheRecord.types.js +0 -1
- package/lib/dist/controllers/index.d.ts +0 -2
- package/lib/dist/controllers/index.d.ts.map +0 -1
- package/lib/dist/controllers/index.js +0 -1
- package/lib/dist/controllers/interfaces/controller.interface.d.ts +0 -2
- package/lib/dist/controllers/interfaces/controller.interface.d.ts.map +0 -1
- package/lib/dist/controllers/interfaces/controller.interface.js +0 -1
- package/lib/dist/database/index.d.ts +0 -2
- package/lib/dist/database/index.d.ts.map +0 -1
- package/lib/dist/database/index.js +0 -1
- package/lib/dist/database/mikro/models/entities/base.entity.d.ts +0 -26
- package/lib/dist/database/mikro/models/entities/base.entity.d.ts.map +0 -1
- package/lib/dist/database/mikro/models/entities/base.entity.js +0 -46
- package/lib/dist/entityMapper/index.d.ts +0 -3
- package/lib/dist/entityMapper/index.d.ts.map +0 -1
- package/lib/dist/entityMapper/index.js +0 -2
- package/lib/dist/entityMapper/interfaces/entityMapper.interface.d.ts +0 -2
- package/lib/dist/entityMapper/interfaces/entityMapper.interface.d.ts.map +0 -1
- package/lib/dist/entityMapper/interfaces/entityMapper.interface.js +0 -1
- package/lib/dist/entityMapper/models/baseEntityMapper.model.d.ts +0 -63
- package/lib/dist/entityMapper/models/baseEntityMapper.model.d.ts.map +0 -1
- package/lib/dist/entityMapper/models/baseEntityMapper.model.js +0 -75
- package/lib/dist/entityMapper/models/requestEntityMapper.model.d.ts +0 -58
- package/lib/dist/entityMapper/models/requestEntityMapper.model.d.ts.map +0 -1
- package/lib/dist/entityMapper/models/requestEntityMapper.model.js +0 -70
- package/lib/dist/entityMapper/models/responseEntityMapper.model.d.ts +0 -56
- package/lib/dist/entityMapper/models/responseEntityMapper.model.d.ts.map +0 -1
- package/lib/dist/entityMapper/models/responseEntityMapper.model.js +0 -65
- package/lib/dist/entityMapper/types/entityMapper.types.d.ts +0 -2
- package/lib/dist/entityMapper/types/entityMapper.types.d.ts.map +0 -1
- package/lib/dist/entityMapper/types/entityMapper.types.js +0 -1
- package/lib/dist/http/guards/isHttpContractDetails.d.ts +0 -5
- package/lib/dist/http/guards/isHttpContractDetails.d.ts.map +0 -1
- package/lib/dist/http/guards/isHttpContractDetails.js +0 -6
- package/lib/dist/http/guards/isResponseShape.d.ts +0 -2
- package/lib/dist/http/guards/isResponseShape.d.ts.map +0 -1
- package/lib/dist/http/guards/isResponseShape.js +0 -7
- package/lib/dist/http/index.d.ts +0 -6
- package/lib/dist/http/index.d.ts.map +0 -1
- package/lib/dist/http/index.js +0 -5
- package/lib/dist/http/interfaces/expressLikeApplication.interface.d.ts +0 -12
- package/lib/dist/http/interfaces/expressLikeApplication.interface.d.ts.map +0 -1
- package/lib/dist/http/interfaces/expressLikeApplication.interface.js +0 -14
- package/lib/dist/http/interfaces/expressLikeRouter.interface.d.ts +0 -103
- package/lib/dist/http/interfaces/expressLikeRouter.interface.d.ts.map +0 -1
- package/lib/dist/http/interfaces/expressLikeRouter.interface.js +0 -336
- package/lib/dist/http/interfaces/index.d.ts +0 -3
- package/lib/dist/http/interfaces/index.d.ts.map +0 -1
- package/lib/dist/http/interfaces/index.js +0 -2
- package/lib/dist/http/middleware/index.d.ts +0 -3
- package/lib/dist/http/middleware/index.d.ts.map +0 -1
- package/lib/dist/http/middleware/index.js +0 -2
- package/lib/dist/http/middleware/request.middleware.d.ts +0 -69
- package/lib/dist/http/middleware/request.middleware.d.ts.map +0 -1
- package/lib/dist/http/middleware/request.middleware.js +0 -210
- package/lib/dist/http/middleware/response.middleware.d.ts +0 -27
- package/lib/dist/http/middleware/response.middleware.d.ts.map +0 -1
- package/lib/dist/http/middleware/response.middleware.js +0 -52
- package/lib/dist/http/openApiV3Generator/index.d.ts +0 -2
- package/lib/dist/http/openApiV3Generator/index.d.ts.map +0 -1
- package/lib/dist/http/openApiV3Generator/index.js +0 -1
- package/lib/dist/http/openApiV3Generator/openApiV3Generator.d.ts +0 -11
- package/lib/dist/http/openApiV3Generator/openApiV3Generator.d.ts.map +0 -1
- package/lib/dist/http/openApiV3Generator/openApiV3Generator.js +0 -167
- package/lib/dist/http/types/apiDefinition.types.d.ts +0 -2
- package/lib/dist/http/types/apiDefinition.types.d.ts.map +0 -1
- package/lib/dist/http/types/apiDefinition.types.js +0 -1
- package/lib/dist/http/types/contractDetails.types.d.ts +0 -2
- package/lib/dist/http/types/contractDetails.types.d.ts.map +0 -1
- package/lib/dist/http/types/contractDetails.types.js +0 -1
- package/lib/dist/http/types/index.d.ts +0 -4
- package/lib/dist/http/types/index.d.ts.map +0 -1
- package/lib/dist/http/types/index.js +0 -3
- package/lib/dist/http/types/router.types.d.ts +0 -2
- package/lib/dist/http/types/router.types.d.ts.map +0 -1
- package/lib/dist/http/types/router.types.js +0 -1
- package/lib/dist/http/utils/enrichExpressLikeSend.d.ts +0 -28
- package/lib/dist/http/utils/enrichExpressLikeSend.d.ts.map +0 -1
- package/lib/dist/http/utils/enrichExpressLikeSend.js +0 -50
- package/lib/dist/http/utils/httpStatusCodes.d.ts +0 -986
- package/lib/dist/http/utils/httpStatusCodes.d.ts.map +0 -1
- package/lib/dist/http/utils/httpStatusCodes.js +0 -1039
- package/lib/dist/http/utils/index.d.ts +0 -3
- package/lib/dist/http/utils/index.d.ts.map +0 -1
- package/lib/dist/http/utils/index.js +0 -2
- package/lib/dist/index.d.ts +0 -7
- package/lib/dist/index.d.ts.map +0 -1
- package/lib/dist/index.js +0 -6
- package/lib/dist/jest.config.d.ts +0 -15
- package/lib/dist/jest.config.d.ts.map +0 -1
- package/lib/dist/jest.config.js +0 -21
- package/lib/dist/lib/index.d.ts +0 -7
- package/lib/dist/lib/index.d.ts.map +0 -1
- package/lib/dist/lib/index.js +0 -6
- package/lib/dist/lib/jest.config.d.ts +0 -15
- package/lib/dist/lib/jest.config.d.ts.map +0 -1
- package/lib/dist/lib/jest.config.js +0 -21
- package/lib/dist/lib/src/cache/index.d.ts +0 -4
- package/lib/dist/lib/src/cache/index.d.ts.map +0 -1
- package/lib/dist/lib/src/cache/index.js +0 -3
- package/lib/dist/lib/src/cache/interfaces/ttlCache.interface.d.ts +0 -2
- package/lib/dist/lib/src/cache/interfaces/ttlCache.interface.d.ts.map +0 -1
- package/lib/dist/lib/src/cache/interfaces/ttlCache.interface.js +0 -1
- package/lib/dist/lib/src/cache/redisTtlCache.d.ts +0 -353
- package/lib/dist/lib/src/cache/redisTtlCache.d.ts.map +0 -1
- package/lib/dist/lib/src/cache/redisTtlCache.js +0 -98
- package/lib/dist/lib/src/cache/types/ttlCacheRecord.types.d.ts +0 -2
- package/lib/dist/lib/src/cache/types/ttlCacheRecord.types.d.ts.map +0 -1
- package/lib/dist/lib/src/cache/types/ttlCacheRecord.types.js +0 -1
- package/lib/dist/lib/src/controllers/index.d.ts +0 -2
- package/lib/dist/lib/src/controllers/index.d.ts.map +0 -1
- package/lib/dist/lib/src/controllers/index.js +0 -1
- package/lib/dist/lib/src/controllers/interfaces/controller.interface.d.ts +0 -2
- package/lib/dist/lib/src/controllers/interfaces/controller.interface.d.ts.map +0 -1
- package/lib/dist/lib/src/controllers/interfaces/controller.interface.js +0 -1
- package/lib/dist/lib/src/database/index.d.ts +0 -2
- package/lib/dist/lib/src/database/index.d.ts.map +0 -1
- package/lib/dist/lib/src/database/index.js +0 -1
- package/lib/dist/lib/src/database/mikro/models/entities/base.entity.d.ts +0 -26
- package/lib/dist/lib/src/database/mikro/models/entities/base.entity.d.ts.map +0 -1
- package/lib/dist/lib/src/database/mikro/models/entities/base.entity.js +0 -46
- package/lib/dist/lib/src/domainMapper/index.d.ts +0 -3
- package/lib/dist/lib/src/domainMapper/index.d.ts.map +0 -1
- package/lib/dist/lib/src/domainMapper/index.js +0 -2
- package/lib/dist/lib/src/domainMapper/interfaces/dtoMapper.interface.d.ts +0 -2
- package/lib/dist/lib/src/domainMapper/interfaces/dtoMapper.interface.d.ts.map +0 -1
- package/lib/dist/lib/src/domainMapper/interfaces/dtoMapper.interface.js +0 -1
- package/lib/dist/lib/src/domainMapper/models/baseDtoMapper.model.d.ts +0 -63
- package/lib/dist/lib/src/domainMapper/models/baseDtoMapper.model.d.ts.map +0 -1
- package/lib/dist/lib/src/domainMapper/models/baseDtoMapper.model.js +0 -75
- package/lib/dist/lib/src/domainMapper/models/requestDtoMapper.model.d.ts +0 -58
- package/lib/dist/lib/src/domainMapper/models/requestDtoMapper.model.d.ts.map +0 -1
- package/lib/dist/lib/src/domainMapper/models/requestDtoMapper.model.js +0 -70
- package/lib/dist/lib/src/domainMapper/models/responseDtoMapper.model.d.ts +0 -56
- package/lib/dist/lib/src/domainMapper/models/responseDtoMapper.model.d.ts.map +0 -1
- package/lib/dist/lib/src/domainMapper/models/responseDtoMapper.model.js +0 -65
- package/lib/dist/lib/src/domainMapper/types/dtoMapper.types.d.ts +0 -2
- package/lib/dist/lib/src/domainMapper/types/dtoMapper.types.d.ts.map +0 -1
- package/lib/dist/lib/src/domainMapper/types/dtoMapper.types.js +0 -1
- package/lib/dist/lib/src/dtoMapper/index.d.ts +0 -3
- package/lib/dist/lib/src/dtoMapper/index.d.ts.map +0 -1
- package/lib/dist/lib/src/dtoMapper/index.js +0 -2
- package/lib/dist/lib/src/dtoMapper/interfaces/dtoMapper.interface.d.ts +0 -2
- package/lib/dist/lib/src/dtoMapper/interfaces/dtoMapper.interface.d.ts.map +0 -1
- package/lib/dist/lib/src/dtoMapper/interfaces/dtoMapper.interface.js +0 -1
- package/lib/dist/lib/src/dtoMapper/models/baseDtoMapper.model.d.ts +0 -63
- package/lib/dist/lib/src/dtoMapper/models/baseDtoMapper.model.d.ts.map +0 -1
- package/lib/dist/lib/src/dtoMapper/models/baseDtoMapper.model.js +0 -75
- package/lib/dist/lib/src/dtoMapper/models/requestDtoMapper.model.d.ts +0 -58
- package/lib/dist/lib/src/dtoMapper/models/requestDtoMapper.model.d.ts.map +0 -1
- package/lib/dist/lib/src/dtoMapper/models/requestDtoMapper.model.js +0 -70
- package/lib/dist/lib/src/dtoMapper/models/responseDtoMapper.model.d.ts +0 -56
- package/lib/dist/lib/src/dtoMapper/models/responseDtoMapper.model.d.ts.map +0 -1
- package/lib/dist/lib/src/dtoMapper/models/responseDtoMapper.model.js +0 -65
- package/lib/dist/lib/src/dtoMapper/types/dtoMapper.types.d.ts +0 -2
- package/lib/dist/lib/src/dtoMapper/types/dtoMapper.types.d.ts.map +0 -1
- package/lib/dist/lib/src/dtoMapper/types/dtoMapper.types.js +0 -1
- package/lib/dist/lib/src/http/application/expressLikeApplication.d.ts +0 -18
- package/lib/dist/lib/src/http/application/expressLikeApplication.d.ts.map +0 -1
- package/lib/dist/lib/src/http/application/expressLikeApplication.js +0 -20
- package/lib/dist/lib/src/http/guards/isHttpContractDetails.d.ts +0 -5
- package/lib/dist/lib/src/http/guards/isHttpContractDetails.d.ts.map +0 -1
- package/lib/dist/lib/src/http/guards/isHttpContractDetails.js +0 -6
- package/lib/dist/lib/src/http/guards/isResponseShape.d.ts +0 -2
- package/lib/dist/lib/src/http/guards/isResponseShape.d.ts.map +0 -1
- package/lib/dist/lib/src/http/guards/isResponseShape.js +0 -7
- package/lib/dist/lib/src/http/handler/typedHandler.d.ts +0 -21
- package/lib/dist/lib/src/http/handler/typedHandler.d.ts.map +0 -1
- package/lib/dist/lib/src/http/handler/typedHandler.js +0 -25
- package/lib/dist/lib/src/http/index.d.ts +0 -11
- package/lib/dist/lib/src/http/index.d.ts.map +0 -1
- package/lib/dist/lib/src/http/index.js +0 -10
- package/lib/dist/lib/src/http/interfaces/expressLikeApplication.interface.d.ts +0 -12
- package/lib/dist/lib/src/http/interfaces/expressLikeApplication.interface.d.ts.map +0 -1
- package/lib/dist/lib/src/http/interfaces/expressLikeApplication.interface.js +0 -14
- package/lib/dist/lib/src/http/interfaces/expressLikeRouter.interface.d.ts +0 -2
- package/lib/dist/lib/src/http/interfaces/expressLikeRouter.interface.d.ts.map +0 -1
- package/lib/dist/lib/src/http/interfaces/expressLikeRouter.interface.js +0 -1
- package/lib/dist/lib/src/http/interfaces/index.d.ts +0 -3
- package/lib/dist/lib/src/http/interfaces/index.d.ts.map +0 -1
- package/lib/dist/lib/src/http/interfaces/index.js +0 -2
- package/lib/dist/lib/src/http/middleware/index.d.ts +0 -3
- package/lib/dist/lib/src/http/middleware/index.d.ts.map +0 -1
- package/lib/dist/lib/src/http/middleware/index.js +0 -2
- package/lib/dist/lib/src/http/middleware/request/auth.middleware.d.ts +0 -27
- package/lib/dist/lib/src/http/middleware/request/auth.middleware.d.ts.map +0 -1
- package/lib/dist/lib/src/http/middleware/request/auth.middleware.js +0 -107
- package/lib/dist/lib/src/http/middleware/request/cors.middleware.d.ts +0 -9
- package/lib/dist/lib/src/http/middleware/request/cors.middleware.d.ts.map +0 -1
- package/lib/dist/lib/src/http/middleware/request/cors.middleware.js +0 -15
- package/lib/dist/lib/src/http/middleware/request/createContext.middleware.d.ts +0 -12
- package/lib/dist/lib/src/http/middleware/request/createContext.middleware.d.ts.map +0 -1
- package/lib/dist/lib/src/http/middleware/request/createContext.middleware.js +0 -26
- package/lib/dist/lib/src/http/middleware/request/enrichDetails.middleware.d.ts +0 -12
- package/lib/dist/lib/src/http/middleware/request/enrichDetails.middleware.d.ts.map +0 -1
- package/lib/dist/lib/src/http/middleware/request/enrichDetails.middleware.js +0 -19
- package/lib/dist/lib/src/http/middleware/request/parse.middleware.d.ts +0 -13
- package/lib/dist/lib/src/http/middleware/request/parse.middleware.d.ts.map +0 -1
- package/lib/dist/lib/src/http/middleware/request/parse.middleware.js +0 -43
- package/lib/dist/lib/src/http/middleware/request.middleware.d.ts +0 -69
- package/lib/dist/lib/src/http/middleware/request.middleware.d.ts.map +0 -1
- package/lib/dist/lib/src/http/middleware/request.middleware.js +0 -210
- package/lib/dist/lib/src/http/middleware/response/parse.middleware.d.ts +0 -27
- package/lib/dist/lib/src/http/middleware/response/parse.middleware.d.ts.map +0 -1
- package/lib/dist/lib/src/http/middleware/response/parse.middleware.js +0 -52
- package/lib/dist/lib/src/http/middleware/response.middleware.d.ts +0 -27
- package/lib/dist/lib/src/http/middleware/response.middleware.d.ts.map +0 -1
- package/lib/dist/lib/src/http/middleware/response.middleware.js +0 -52
- package/lib/dist/lib/src/http/openApiV3Generator/index.d.ts +0 -2
- package/lib/dist/lib/src/http/openApiV3Generator/index.d.ts.map +0 -1
- package/lib/dist/lib/src/http/openApiV3Generator/index.js +0 -1
- package/lib/dist/lib/src/http/openApiV3Generator/openApiV3Generator.d.ts +0 -11
- package/lib/dist/lib/src/http/openApiV3Generator/openApiV3Generator.d.ts.map +0 -1
- package/lib/dist/lib/src/http/openApiV3Generator/openApiV3Generator.js +0 -167
- package/lib/dist/lib/src/http/router/expressLikeRouter.d.ts +0 -89
- package/lib/dist/lib/src/http/router/expressLikeRouter.d.ts.map +0 -1
- package/lib/dist/lib/src/http/router/expressLikeRouter.js +0 -322
- package/lib/dist/lib/src/http/types/apiDefinition.types.d.ts +0 -2
- package/lib/dist/lib/src/http/types/apiDefinition.types.d.ts.map +0 -1
- package/lib/dist/lib/src/http/types/apiDefinition.types.js +0 -1
- package/lib/dist/lib/src/http/types/contractDetails.types.d.ts +0 -2
- package/lib/dist/lib/src/http/types/contractDetails.types.d.ts.map +0 -1
- package/lib/dist/lib/src/http/types/contractDetails.types.js +0 -1
- package/lib/dist/lib/src/http/types/index.d.ts +0 -4
- package/lib/dist/lib/src/http/types/index.d.ts.map +0 -1
- package/lib/dist/lib/src/http/types/index.js +0 -3
- package/lib/dist/lib/src/http/types/router.types.d.ts +0 -2
- package/lib/dist/lib/src/http/types/router.types.d.ts.map +0 -1
- package/lib/dist/lib/src/http/types/router.types.js +0 -1
- package/lib/dist/lib/src/http/utils/enrichExpressLikeSend.d.ts +0 -28
- package/lib/dist/lib/src/http/utils/enrichExpressLikeSend.d.ts.map +0 -1
- package/lib/dist/lib/src/http/utils/enrichExpressLikeSend.js +0 -50
- package/lib/dist/lib/src/http/utils/httpStatusCodes.d.ts +0 -986
- package/lib/dist/lib/src/http/utils/httpStatusCodes.d.ts.map +0 -1
- package/lib/dist/lib/src/http/utils/httpStatusCodes.js +0 -1039
- package/lib/dist/lib/src/http/utils/index.d.ts +0 -3
- package/lib/dist/lib/src/http/utils/index.d.ts.map +0 -1
- package/lib/dist/lib/src/http/utils/index.js +0 -2
- package/lib/dist/lib/src/services/index.d.ts +0 -2
- package/lib/dist/lib/src/services/index.d.ts.map +0 -1
- package/lib/dist/lib/src/services/index.js +0 -1
- package/lib/dist/lib/src/services/interfaces/baseService.d.ts +0 -2
- package/lib/dist/lib/src/services/interfaces/baseService.d.ts.map +0 -1
- package/lib/dist/lib/src/services/interfaces/baseService.js +0 -1
- package/lib/dist/lib/tests/dtoMapper.test.d.ts +0 -2
- package/lib/dist/lib/tests/dtoMapper.test.d.ts.map +0 -1
- package/lib/dist/lib/tests/dtoMapper.test.js +0 -172
- package/lib/dist/lib/tests/entityMapper.test.d.ts +0 -2
- package/lib/dist/lib/tests/entityMapper.test.d.ts.map +0 -1
- package/lib/dist/lib/tests/entityMapper.test.js +0 -172
- package/lib/dist/lib/tests/expressLikeRouter.test.d.ts +0 -2
- package/lib/dist/lib/tests/expressLikeRouter.test.d.ts.map +0 -1
- package/lib/dist/lib/tests/expressLikeRouter.test.js +0 -3
- package/lib/dist/lib/tests/http.middleware.test.d.ts +0 -2
- package/lib/dist/lib/tests/http.middleware.test.d.ts.map +0 -1
- package/lib/dist/lib/tests/http.middleware.test.js +0 -95
- package/lib/dist/lib/tests/openApiV3Generator.test.d.ts +0 -2
- package/lib/dist/lib/tests/openApiV3Generator.test.d.ts.map +0 -1
- package/lib/dist/lib/tests/openApiV3Generator.test.js +0 -66
- package/lib/dist/lib/tests/redisTtlCache.test.d.ts +0 -2
- package/lib/dist/lib/tests/redisTtlCache.test.d.ts.map +0 -1
- package/lib/dist/lib/tests/redisTtlCache.test.js +0 -49
- package/lib/dist/lib/tests/typedHandler.test.d.ts +0 -2
- package/lib/dist/lib/tests/typedHandler.test.d.ts.map +0 -1
- package/lib/dist/lib/tests/typedHandler.test.js +0 -3
- package/lib/dist/lib/vitest.config.d.ts +0 -3
- package/lib/dist/lib/vitest.config.d.ts.map +0 -1
- package/lib/dist/lib/vitest.config.js +0 -7
- package/lib/dist/services/index.d.ts +0 -2
- package/lib/dist/services/index.d.ts.map +0 -1
- package/lib/dist/services/index.js +0 -1
- package/lib/dist/services/interfaces/baseService.d.ts +0 -2
- package/lib/dist/services/interfaces/baseService.d.ts.map +0 -1
- package/lib/dist/services/interfaces/baseService.js +0 -1
- package/lib/dist/tests/entityMapper.test.d.ts +0 -2
- package/lib/dist/tests/entityMapper.test.d.ts.map +0 -1
- package/lib/dist/tests/entityMapper.test.js +0 -171
- package/lib/dist/tests/http.middleware.test.d.ts +0 -2
- package/lib/dist/tests/http.middleware.test.d.ts.map +0 -1
- package/lib/dist/tests/http.middleware.test.js +0 -93
- package/lib/dist/tests/openApiV3Generator.test.d.ts +0 -2
- package/lib/dist/tests/openApiV3Generator.test.d.ts.map +0 -1
- package/lib/dist/tests/openApiV3Generator.test.js +0 -66
- package/lib/dist/tests/redisTtlCache.test.d.ts +0 -2
- package/lib/dist/tests/redisTtlCache.test.d.ts.map +0 -1
- package/lib/dist/tests/redisTtlCache.test.js +0 -49
- package/lib/index.d.ts +0 -7
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -7
- package/lib/src/domainMapper/index.d.ts +0 -3
- package/lib/src/domainMapper/index.d.ts.map +0 -1
- package/lib/src/domainMapper/index.js +0 -2
- package/lib/src/domainMapper/interfaces/dtoMapper.interface.d.ts +0 -18
- package/lib/src/domainMapper/interfaces/dtoMapper.interface.d.ts.map +0 -1
- package/lib/src/domainMapper/interfaces/dtoMapper.interface.js +0 -1
- package/lib/src/domainMapper/models/baseDtoMapper.model.d.ts +0 -72
- package/lib/src/domainMapper/models/baseDtoMapper.model.d.ts.map +0 -1
- package/lib/src/domainMapper/models/baseDtoMapper.model.js +0 -75
- package/lib/src/domainMapper/models/requestDtoMapper.model.d.ts +0 -68
- package/lib/src/domainMapper/models/requestDtoMapper.model.d.ts.map +0 -1
- package/lib/src/domainMapper/models/requestDtoMapper.model.js +0 -70
- package/lib/src/domainMapper/models/responseDtoMapper.model.d.ts +0 -67
- package/lib/src/domainMapper/models/responseDtoMapper.model.d.ts.map +0 -1
- package/lib/src/domainMapper/models/responseDtoMapper.model.js +0 -65
- package/lib/src/domainMapper/types/dtoMapper.types.d.ts +0 -9
- package/lib/src/domainMapper/types/dtoMapper.types.d.ts.map +0 -1
- package/lib/src/domainMapper/types/dtoMapper.types.js +0 -1
- package/lib/src/http/handler/typedHandler.d.ts +0 -24
- package/lib/src/http/handler/typedHandler.d.ts.map +0 -1
- package/lib/src/http/handler/typedHandler.js +0 -25
- package/lib/src/http/interfaces/expressLikeApplication.interface.d.ts +0 -16
- package/lib/src/http/interfaces/expressLikeApplication.interface.d.ts.map +0 -1
- package/lib/src/http/interfaces/expressLikeApplication.interface.js +0 -14
- package/lib/src/http/interfaces/index.d.ts +0 -3
- package/lib/src/http/interfaces/index.d.ts.map +0 -1
- package/lib/src/http/interfaces/index.js +0 -2
- package/lib/src/http/middleware/index.d.ts +0 -3
- package/lib/src/http/middleware/index.d.ts.map +0 -1
- package/lib/src/http/middleware/index.js +0 -2
- package/lib/src/http/middleware/request.middleware.d.ts +0 -73
- package/lib/src/http/middleware/request.middleware.d.ts.map +0 -1
- package/lib/src/http/middleware/request.middleware.js +0 -210
- package/lib/src/http/middleware/response.middleware.d.ts +0 -31
- package/lib/src/http/middleware/response.middleware.d.ts.map +0 -1
- package/lib/src/http/middleware/response.middleware.js +0 -52
- package/lib/src/http/openApiV3Generator/index.d.ts +0 -2
- package/lib/src/http/openApiV3Generator/index.d.ts.map +0 -1
- package/lib/src/http/openApiV3Generator/index.js +0 -1
- package/lib/src/http/types/index.d.ts +0 -4
- package/lib/src/http/types/index.d.ts.map +0 -1
- package/lib/src/http/types/index.js +0 -3
- package/lib/src/http/utils/index.d.ts +0 -3
- package/lib/src/http/utils/index.d.ts.map +0 -1
- package/lib/src/http/utils/index.js +0 -2
- package/lib/tests/entityMapper.test.d.ts +0 -2
- package/lib/tests/entityMapper.test.d.ts.map +0 -1
- package/lib/tests/entityMapper.test.js +0 -168
- package/lib/tests/expressLikeRouter.test.d.ts +0 -2
- package/lib/tests/expressLikeRouter.test.d.ts.map +0 -1
- package/lib/tests/expressLikeRouter.test.js +0 -3
- /package/lib/{dist/cache/interfaces/ttlCache.interface.js → src/http/types/typedHandler.types.js} +0 -0
package/package.json
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "forklaunch-js core package. Contains useful building blocks.",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib"
|
|
7
7
|
],
|
|
8
8
|
"types": "lib/index.d.ts",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "vitest --passWithNoTests",
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"clean": "rm -rf lib pnpm.lock.yaml node_modules",
|
|
13
|
+
"docs": "typedoc --out docs *",
|
|
14
|
+
"lint": "eslint . -c eslint.config.mjs",
|
|
15
|
+
"lint:fix": "eslint . -c eslint.config.mjs --fix",
|
|
16
|
+
"format": "prettier --ignore-path=.prettierignore --config .prettierrc '**/*.ts' --write"
|
|
17
|
+
},
|
|
9
18
|
"author": "Rohin Bhargava",
|
|
10
19
|
"license": "MIT",
|
|
11
20
|
"repository": {
|
|
@@ -17,16 +26,17 @@
|
|
|
17
26
|
},
|
|
18
27
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
19
28
|
"dependencies": {
|
|
29
|
+
"@forklaunch/validator": "workspace:*",
|
|
20
30
|
"@mikro-orm/core": "^6.3.6",
|
|
21
31
|
"cors": "^2.8.5",
|
|
22
32
|
"jose": "^5.7.0",
|
|
23
33
|
"openapi3-ts": "^4.3.3",
|
|
24
34
|
"redis": "^4.7.0",
|
|
25
|
-
"uuid": "^10.0.0"
|
|
26
|
-
"@forklaunch/validator": "0.3.1"
|
|
35
|
+
"uuid": "^10.0.0"
|
|
27
36
|
},
|
|
28
37
|
"devDependencies": {
|
|
29
38
|
"@eslint/js": "^9.9.0",
|
|
39
|
+
"@forklaunch/common": "workspace:*",
|
|
30
40
|
"@types/cors": "^2.8.17",
|
|
31
41
|
"@types/jest": "^29.5.12",
|
|
32
42
|
"@types/qs": "^6.9.15",
|
|
@@ -39,8 +49,7 @@
|
|
|
39
49
|
"ts-node": "^10.9.2",
|
|
40
50
|
"typedoc": "^0.26.6",
|
|
41
51
|
"typescript": "^5.5.4",
|
|
42
|
-
"typescript-eslint": "^8.2.0"
|
|
43
|
-
"@forklaunch/common": "0.1.3"
|
|
52
|
+
"typescript-eslint": "^8.2.0"
|
|
44
53
|
},
|
|
45
54
|
"directories": {
|
|
46
55
|
"test": "tests"
|
|
@@ -71,14 +80,5 @@
|
|
|
71
80
|
"default": "./lib/src/services/index.js"
|
|
72
81
|
}
|
|
73
82
|
},
|
|
74
|
-
"type": "module"
|
|
75
|
-
"scripts": {
|
|
76
|
-
"test": "vitest --passWithNoTests",
|
|
77
|
-
"build": "tsc",
|
|
78
|
-
"clean": "rm -rf dist pnpm.lock.yaml node_modules",
|
|
79
|
-
"docs": "typedoc --out docs *",
|
|
80
|
-
"lint": "eslint . -c eslint.config.mjs",
|
|
81
|
-
"lint:fix": "eslint . -c eslint.config.mjs --fix",
|
|
82
|
-
"format": "prettier --ignore-path=.prettierignore --config .prettierrc '**/*.ts' --write"
|
|
83
|
-
}
|
|
83
|
+
"type": "module"
|
|
84
84
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 forklaunch
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../dist/cache/index.js"],"names":[],"mappings":""}
|
package/lib/dist/cache/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ttlCache.interface.d.ts","sourceRoot":"","sources":["../../../../dist/cache/interfaces/ttlCache.interface.js"],"names":[],"mappings":""}
|
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Class representing a Redis-based TTL (Time-To-Live) cache.
|
|
3
|
-
* Implements the TtlCache interface.
|
|
4
|
-
*/
|
|
5
|
-
export class RedisTtlCache {
|
|
6
|
-
/**
|
|
7
|
-
* Creates an instance of RedisTtlCache.
|
|
8
|
-
*
|
|
9
|
-
* @param {number} ttlMilliseconds - The default TTL in milliseconds.
|
|
10
|
-
* @param {RedisClientOptions} [hostingOptions] - The Redis client options.
|
|
11
|
-
*/
|
|
12
|
-
constructor(ttlMilliseconds: number, hostingOptions?: any);
|
|
13
|
-
ttlMilliseconds: number;
|
|
14
|
-
client: import(".pnpm/@redis+client@1.6.0/node_modules/@redis/client").RedisClientType<{
|
|
15
|
-
graph: {
|
|
16
|
-
CONFIG_GET: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/CONFIG_GET");
|
|
17
|
-
configGet: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/CONFIG_GET");
|
|
18
|
-
CONFIG_SET: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/CONFIG_SET");
|
|
19
|
-
configSet: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/CONFIG_SET");
|
|
20
|
-
DELETE: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/DELETE");
|
|
21
|
-
delete: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/DELETE");
|
|
22
|
-
EXPLAIN: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/EXPLAIN");
|
|
23
|
-
explain: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/EXPLAIN");
|
|
24
|
-
LIST: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/LIST");
|
|
25
|
-
list: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/LIST");
|
|
26
|
-
PROFILE: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/PROFILE");
|
|
27
|
-
profile: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/PROFILE");
|
|
28
|
-
QUERY: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/QUERY");
|
|
29
|
-
query: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/QUERY");
|
|
30
|
-
RO_QUERY: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/RO_QUERY");
|
|
31
|
-
roQuery: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/RO_QUERY");
|
|
32
|
-
SLOWLOG: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/SLOWLOG");
|
|
33
|
-
slowLog: typeof import(".pnpm/@redis+graph@1.1.1_@redis+client@1.6.0/node_modules/@redis/graph/dist/commands/SLOWLOG");
|
|
34
|
-
};
|
|
35
|
-
json: {
|
|
36
|
-
ARRAPPEND: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/ARRAPPEND");
|
|
37
|
-
arrAppend: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/ARRAPPEND");
|
|
38
|
-
ARRINDEX: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/ARRINDEX");
|
|
39
|
-
arrIndex: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/ARRINDEX");
|
|
40
|
-
ARRINSERT: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/ARRINSERT");
|
|
41
|
-
arrInsert: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/ARRINSERT");
|
|
42
|
-
ARRLEN: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/ARRLEN");
|
|
43
|
-
arrLen: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/ARRLEN");
|
|
44
|
-
ARRPOP: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/ARRPOP");
|
|
45
|
-
arrPop: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/ARRPOP");
|
|
46
|
-
ARRTRIM: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/ARRTRIM");
|
|
47
|
-
arrTrim: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/ARRTRIM");
|
|
48
|
-
DEBUG_MEMORY: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/DEBUG_MEMORY");
|
|
49
|
-
debugMemory: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/DEBUG_MEMORY");
|
|
50
|
-
DEL: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/DEL");
|
|
51
|
-
del: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/DEL");
|
|
52
|
-
FORGET: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/FORGET");
|
|
53
|
-
forget: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/FORGET");
|
|
54
|
-
GET: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/GET");
|
|
55
|
-
get: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/GET");
|
|
56
|
-
MERGE: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/MERGE");
|
|
57
|
-
merge: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/MERGE");
|
|
58
|
-
MGET: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/MGET");
|
|
59
|
-
mGet: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/MGET");
|
|
60
|
-
MSET: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/MSET");
|
|
61
|
-
mSet: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/MSET");
|
|
62
|
-
NUMINCRBY: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/NUMINCRBY");
|
|
63
|
-
numIncrBy: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/NUMINCRBY");
|
|
64
|
-
NUMMULTBY: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/NUMMULTBY");
|
|
65
|
-
numMultBy: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/NUMMULTBY");
|
|
66
|
-
OBJKEYS: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/OBJKEYS");
|
|
67
|
-
objKeys: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/OBJKEYS");
|
|
68
|
-
OBJLEN: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/OBJLEN");
|
|
69
|
-
objLen: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/OBJLEN");
|
|
70
|
-
RESP: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/RESP");
|
|
71
|
-
resp: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/RESP");
|
|
72
|
-
SET: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/SET");
|
|
73
|
-
set: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/SET");
|
|
74
|
-
STRAPPEND: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/STRAPPEND");
|
|
75
|
-
strAppend: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/STRAPPEND");
|
|
76
|
-
STRLEN: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/STRLEN");
|
|
77
|
-
strLen: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/STRLEN");
|
|
78
|
-
TYPE: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/TYPE");
|
|
79
|
-
type: typeof import(".pnpm/@redis+json@1.0.7_@redis+client@1.6.0/node_modules/@redis/json/dist/commands/TYPE");
|
|
80
|
-
};
|
|
81
|
-
ft: {
|
|
82
|
-
_LIST: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/_LIST");
|
|
83
|
-
_list: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/_LIST");
|
|
84
|
-
ALTER: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/ALTER");
|
|
85
|
-
alter: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/ALTER");
|
|
86
|
-
AGGREGATE_WITHCURSOR: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
|
|
87
|
-
aggregateWithCursor: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
|
|
88
|
-
AGGREGATE: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/AGGREGATE");
|
|
89
|
-
aggregate: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/AGGREGATE");
|
|
90
|
-
ALIASADD: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/ALIASADD");
|
|
91
|
-
aliasAdd: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/ALIASADD");
|
|
92
|
-
ALIASDEL: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/ALIASDEL");
|
|
93
|
-
aliasDel: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/ALIASDEL");
|
|
94
|
-
ALIASUPDATE: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/ALIASUPDATE");
|
|
95
|
-
aliasUpdate: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/ALIASUPDATE");
|
|
96
|
-
CONFIG_GET: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/CONFIG_GET");
|
|
97
|
-
configGet: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/CONFIG_GET");
|
|
98
|
-
CONFIG_SET: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/CONFIG_SET");
|
|
99
|
-
configSet: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/CONFIG_SET");
|
|
100
|
-
CREATE: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/CREATE");
|
|
101
|
-
create: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/CREATE");
|
|
102
|
-
CURSOR_DEL: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/CURSOR_DEL");
|
|
103
|
-
cursorDel: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/CURSOR_DEL");
|
|
104
|
-
CURSOR_READ: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/CURSOR_READ");
|
|
105
|
-
cursorRead: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/CURSOR_READ");
|
|
106
|
-
DICTADD: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/DICTADD");
|
|
107
|
-
dictAdd: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/DICTADD");
|
|
108
|
-
DICTDEL: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/DICTDEL");
|
|
109
|
-
dictDel: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/DICTDEL");
|
|
110
|
-
DICTDUMP: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/DICTDUMP");
|
|
111
|
-
dictDump: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/DICTDUMP");
|
|
112
|
-
DROPINDEX: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/DROPINDEX");
|
|
113
|
-
dropIndex: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/DROPINDEX");
|
|
114
|
-
EXPLAIN: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/EXPLAIN");
|
|
115
|
-
explain: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/EXPLAIN");
|
|
116
|
-
EXPLAINCLI: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/EXPLAINCLI");
|
|
117
|
-
explainCli: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/EXPLAINCLI");
|
|
118
|
-
INFO: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/INFO");
|
|
119
|
-
info: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/INFO");
|
|
120
|
-
PROFILESEARCH: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/PROFILE_SEARCH");
|
|
121
|
-
profileSearch: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/PROFILE_SEARCH");
|
|
122
|
-
PROFILEAGGREGATE: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/PROFILE_AGGREGATE");
|
|
123
|
-
profileAggregate: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/PROFILE_AGGREGATE");
|
|
124
|
-
SEARCH: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SEARCH");
|
|
125
|
-
search: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SEARCH");
|
|
126
|
-
SEARCH_NOCONTENT: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SEARCH_NOCONTENT");
|
|
127
|
-
searchNoContent: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SEARCH_NOCONTENT");
|
|
128
|
-
SPELLCHECK: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SPELLCHECK");
|
|
129
|
-
spellCheck: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SPELLCHECK");
|
|
130
|
-
SUGADD: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGADD");
|
|
131
|
-
sugAdd: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGADD");
|
|
132
|
-
SUGDEL: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGDEL");
|
|
133
|
-
sugDel: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGDEL");
|
|
134
|
-
SUGGET_WITHPAYLOADS: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
|
|
135
|
-
sugGetWithPayloads: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
|
|
136
|
-
SUGGET_WITHSCORES_WITHPAYLOADS: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
|
|
137
|
-
sugGetWithScoresWithPayloads: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
|
|
138
|
-
SUGGET_WITHSCORES: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGGET_WITHSCORES");
|
|
139
|
-
sugGetWithScores: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGGET_WITHSCORES");
|
|
140
|
-
SUGGET: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGGET");
|
|
141
|
-
sugGet: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGGET");
|
|
142
|
-
SUGLEN: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGLEN");
|
|
143
|
-
sugLen: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SUGLEN");
|
|
144
|
-
SYNDUMP: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SYNDUMP");
|
|
145
|
-
synDump: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SYNDUMP");
|
|
146
|
-
SYNUPDATE: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SYNUPDATE");
|
|
147
|
-
synUpdate: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/SYNUPDATE");
|
|
148
|
-
TAGVALS: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/TAGVALS");
|
|
149
|
-
tagVals: typeof import(".pnpm/@redis+search@1.2.0_@redis+client@1.6.0/node_modules/@redis/search/dist/commands/TAGVALS");
|
|
150
|
-
};
|
|
151
|
-
ts: {
|
|
152
|
-
ADD: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/ADD");
|
|
153
|
-
add: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/ADD");
|
|
154
|
-
ALTER: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/ALTER");
|
|
155
|
-
alter: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/ALTER");
|
|
156
|
-
CREATE: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/CREATE");
|
|
157
|
-
create: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/CREATE");
|
|
158
|
-
CREATERULE: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/CREATERULE");
|
|
159
|
-
createRule: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/CREATERULE");
|
|
160
|
-
DECRBY: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/DECRBY");
|
|
161
|
-
decrBy: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/DECRBY");
|
|
162
|
-
DEL: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/DEL");
|
|
163
|
-
del: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/DEL");
|
|
164
|
-
DELETERULE: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/DELETERULE");
|
|
165
|
-
deleteRule: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/DELETERULE");
|
|
166
|
-
GET: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/GET");
|
|
167
|
-
get: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/GET");
|
|
168
|
-
INCRBY: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/INCRBY");
|
|
169
|
-
incrBy: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/INCRBY");
|
|
170
|
-
INFO_DEBUG: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/INFO_DEBUG");
|
|
171
|
-
infoDebug: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/INFO_DEBUG");
|
|
172
|
-
INFO: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/INFO");
|
|
173
|
-
info: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/INFO");
|
|
174
|
-
MADD: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MADD");
|
|
175
|
-
mAdd: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MADD");
|
|
176
|
-
MGET: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MGET");
|
|
177
|
-
mGet: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MGET");
|
|
178
|
-
MGET_WITHLABELS: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MGET_WITHLABELS");
|
|
179
|
-
mGetWithLabels: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MGET_WITHLABELS");
|
|
180
|
-
QUERYINDEX: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/QUERYINDEX");
|
|
181
|
-
queryIndex: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/QUERYINDEX");
|
|
182
|
-
RANGE: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/RANGE");
|
|
183
|
-
range: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/RANGE");
|
|
184
|
-
REVRANGE: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/REVRANGE");
|
|
185
|
-
revRange: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/REVRANGE");
|
|
186
|
-
MRANGE: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MRANGE");
|
|
187
|
-
mRange: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MRANGE");
|
|
188
|
-
MRANGE_WITHLABELS: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MRANGE_WITHLABELS");
|
|
189
|
-
mRangeWithLabels: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MRANGE_WITHLABELS");
|
|
190
|
-
MREVRANGE: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MREVRANGE");
|
|
191
|
-
mRevRange: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MREVRANGE");
|
|
192
|
-
MREVRANGE_WITHLABELS: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
|
|
193
|
-
mRevRangeWithLabels: typeof import(".pnpm/@redis+time-series@1.1.0_@redis+client@1.6.0/node_modules/@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
|
|
194
|
-
};
|
|
195
|
-
bf: {
|
|
196
|
-
ADD: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/ADD");
|
|
197
|
-
add: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/ADD");
|
|
198
|
-
CARD: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/CARD");
|
|
199
|
-
card: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/CARD");
|
|
200
|
-
EXISTS: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/EXISTS");
|
|
201
|
-
exists: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/EXISTS");
|
|
202
|
-
INFO: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/INFO");
|
|
203
|
-
info: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/INFO");
|
|
204
|
-
INSERT: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/INSERT");
|
|
205
|
-
insert: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/INSERT");
|
|
206
|
-
LOADCHUNK: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/LOADCHUNK");
|
|
207
|
-
loadChunk: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/LOADCHUNK");
|
|
208
|
-
MADD: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/MADD");
|
|
209
|
-
mAdd: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/MADD");
|
|
210
|
-
MEXISTS: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/MEXISTS");
|
|
211
|
-
mExists: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/MEXISTS");
|
|
212
|
-
RESERVE: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/RESERVE");
|
|
213
|
-
reserve: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/RESERVE");
|
|
214
|
-
SCANDUMP: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/SCANDUMP");
|
|
215
|
-
scanDump: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/bloom/SCANDUMP");
|
|
216
|
-
};
|
|
217
|
-
cms: {
|
|
218
|
-
INCRBY: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/count-min-sketch/INCRBY");
|
|
219
|
-
incrBy: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/count-min-sketch/INCRBY");
|
|
220
|
-
INFO: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/count-min-sketch/INFO");
|
|
221
|
-
info: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/count-min-sketch/INFO");
|
|
222
|
-
INITBYDIM: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
|
|
223
|
-
initByDim: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
|
|
224
|
-
INITBYPROB: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
|
|
225
|
-
initByProb: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
|
|
226
|
-
MERGE: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/count-min-sketch/MERGE");
|
|
227
|
-
merge: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/count-min-sketch/MERGE");
|
|
228
|
-
QUERY: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/count-min-sketch/QUERY");
|
|
229
|
-
query: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/count-min-sketch/QUERY");
|
|
230
|
-
};
|
|
231
|
-
cf: {
|
|
232
|
-
ADD: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/ADD");
|
|
233
|
-
add: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/ADD");
|
|
234
|
-
ADDNX: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/ADDNX");
|
|
235
|
-
addNX: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/ADDNX");
|
|
236
|
-
COUNT: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/COUNT");
|
|
237
|
-
count: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/COUNT");
|
|
238
|
-
DEL: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/DEL");
|
|
239
|
-
del: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/DEL");
|
|
240
|
-
EXISTS: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/EXISTS");
|
|
241
|
-
exists: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/EXISTS");
|
|
242
|
-
INFO: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/INFO");
|
|
243
|
-
info: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/INFO");
|
|
244
|
-
INSERT: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/INSERT");
|
|
245
|
-
insert: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/INSERT");
|
|
246
|
-
INSERTNX: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/INSERTNX");
|
|
247
|
-
insertNX: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/INSERTNX");
|
|
248
|
-
LOADCHUNK: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
|
|
249
|
-
loadChunk: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
|
|
250
|
-
RESERVE: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/RESERVE");
|
|
251
|
-
reserve: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/RESERVE");
|
|
252
|
-
SCANDUMP: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/SCANDUMP");
|
|
253
|
-
scanDump: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/cuckoo/SCANDUMP");
|
|
254
|
-
};
|
|
255
|
-
tDigest: {
|
|
256
|
-
ADD: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/ADD");
|
|
257
|
-
add: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/ADD");
|
|
258
|
-
BYRANK: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/BYRANK");
|
|
259
|
-
byRank: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/BYRANK");
|
|
260
|
-
BYREVRANK: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/BYREVRANK");
|
|
261
|
-
byRevRank: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/BYREVRANK");
|
|
262
|
-
CDF: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/CDF");
|
|
263
|
-
cdf: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/CDF");
|
|
264
|
-
CREATE: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/CREATE");
|
|
265
|
-
create: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/CREATE");
|
|
266
|
-
INFO: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/INFO");
|
|
267
|
-
info: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/INFO");
|
|
268
|
-
MAX: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/MAX");
|
|
269
|
-
max: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/MAX");
|
|
270
|
-
MERGE: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/MERGE");
|
|
271
|
-
merge: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/MERGE");
|
|
272
|
-
MIN: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/MIN");
|
|
273
|
-
min: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/MIN");
|
|
274
|
-
QUANTILE: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/QUANTILE");
|
|
275
|
-
quantile: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/QUANTILE");
|
|
276
|
-
RANK: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/RANK");
|
|
277
|
-
rank: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/RANK");
|
|
278
|
-
RESET: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/RESET");
|
|
279
|
-
reset: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/RESET");
|
|
280
|
-
REVRANK: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/REVRANK");
|
|
281
|
-
revRank: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/REVRANK");
|
|
282
|
-
TRIMMED_MEAN: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
|
|
283
|
-
trimmedMean: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
|
|
284
|
-
};
|
|
285
|
-
topK: {
|
|
286
|
-
ADD: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/ADD");
|
|
287
|
-
add: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/ADD");
|
|
288
|
-
COUNT: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/COUNT");
|
|
289
|
-
count: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/COUNT");
|
|
290
|
-
INCRBY: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/INCRBY");
|
|
291
|
-
incrBy: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/INCRBY");
|
|
292
|
-
INFO: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/INFO");
|
|
293
|
-
info: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/INFO");
|
|
294
|
-
LIST_WITHCOUNT: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
|
|
295
|
-
listWithCount: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
|
|
296
|
-
LIST: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/LIST");
|
|
297
|
-
list: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/LIST");
|
|
298
|
-
QUERY: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/QUERY");
|
|
299
|
-
query: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/QUERY");
|
|
300
|
-
RESERVE: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/RESERVE");
|
|
301
|
-
reserve: typeof import(".pnpm/@redis+bloom@1.2.0_@redis+client@1.6.0/node_modules/@redis/bloom/dist/commands/top-k/RESERVE");
|
|
302
|
-
};
|
|
303
|
-
} & import("redis").RedisModules, import("redis").RedisFunctions, import("redis").RedisScripts>;
|
|
304
|
-
/**
|
|
305
|
-
* Puts a record into the Redis cache.
|
|
306
|
-
*
|
|
307
|
-
* @param {TtlCacheRecord} param0 - The cache record to put into the cache.
|
|
308
|
-
* @returns {Promise<void>} - A promise that resolves when the record is put into the cache.
|
|
309
|
-
*/
|
|
310
|
-
putRecord({ key, value, ttlMilliseconds }: TtlCacheRecord): Promise<void>;
|
|
311
|
-
/**
|
|
312
|
-
* Deletes a record from the Redis cache.
|
|
313
|
-
*
|
|
314
|
-
* @param {string} cacheRecordKey - The key of the cache record to delete.
|
|
315
|
-
* @returns {Promise<void>} - A promise that resolves when the record is deleted from the cache.
|
|
316
|
-
*/
|
|
317
|
-
deleteRecord(cacheRecordKey: string): Promise<void>;
|
|
318
|
-
/**
|
|
319
|
-
* Reads a record from the Redis cache.
|
|
320
|
-
*
|
|
321
|
-
* @param {string} cacheRecordKey - The key of the cache record to read.
|
|
322
|
-
* @returns {Promise<TtlCacheRecord>} - A promise that resolves with the cache record.
|
|
323
|
-
* @throws {Error} - Throws an error if the record is not found.
|
|
324
|
-
*/
|
|
325
|
-
readRecord(cacheRecordKey: string): Promise<TtlCacheRecord>;
|
|
326
|
-
/**
|
|
327
|
-
* Lists the keys in the Redis cache that match a pattern prefix.
|
|
328
|
-
*
|
|
329
|
-
* @param {string} pattern_prefix - The pattern prefix to match.
|
|
330
|
-
* @returns {Promise<string[]>} - A promise that resolves with an array of keys matching the pattern prefix.
|
|
331
|
-
*/
|
|
332
|
-
listKeys(pattern_prefix: string): Promise<string[]>;
|
|
333
|
-
/**
|
|
334
|
-
* Peeks at a record in the Redis cache to check if it exists.
|
|
335
|
-
*
|
|
336
|
-
* @param {string} cacheRecordKey - The key of the cache record to peek at.
|
|
337
|
-
* @returns {Promise<boolean>} - A promise that resolves with a boolean indicating if the record exists.
|
|
338
|
-
*/
|
|
339
|
-
peekRecord(cacheRecordKey: string): Promise<boolean>;
|
|
340
|
-
/**
|
|
341
|
-
* Disconnects the Redis client.
|
|
342
|
-
*
|
|
343
|
-
* @returns {Promise<void>} - A promise that resolves when the client is disconnected.
|
|
344
|
-
*/
|
|
345
|
-
disconnect(): Promise<void>;
|
|
346
|
-
/**
|
|
347
|
-
* Gets the default TTL (Time-To-Live) in milliseconds.
|
|
348
|
-
*
|
|
349
|
-
* @returns {number} - The TTL in milliseconds.
|
|
350
|
-
*/
|
|
351
|
-
getTtlMilliseconds(): number;
|
|
352
|
-
}
|
|
353
|
-
//# sourceMappingURL=redisTtlCache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redisTtlCache.d.ts","sourceRoot":"","sources":["../../../dist/cache/redisTtlCache.js"],"names":[],"mappings":"AACA;;;GAGG;AACH;IAGI;;;;;OAKG;IACH,6BAHW,MAAM,wBAUhB;IAfD,wBAAgB;IAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oGAAO;IAeP;;;;;OAKG;IACH,2CAHW,cAAc,GACZ,OAAO,CAAC,IAAI,CAAC,CAMzB;IACD;;;;;OAKG;IACH,6BAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAIzB;IACD;;;;;;OAMG;IACH,2BAJW,MAAM,GACJ,OAAO,CAAC,cAAc,CAAC,CAcnC;IACD;;;;;OAKG;IACH,yBAHW,MAAM,GACJ,OAAO,CAAC,MAAM,EAAE,CAAC,CAK7B;IACD;;;;;OAKG;IACH,2BAHW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CAK5B;IACD;;;;OAIG;IACH,cAFa,OAAO,CAAC,IAAI,CAAC,CAIzB;IACD;;;;OAIG;IACH,sBAFa,MAAM,CAIlB;CACJ"}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { createClient } from 'redis';
|
|
2
|
-
/**
|
|
3
|
-
* Class representing a Redis-based TTL (Time-To-Live) cache.
|
|
4
|
-
* Implements the TtlCache interface.
|
|
5
|
-
*/
|
|
6
|
-
export class RedisTtlCache {
|
|
7
|
-
ttlMilliseconds;
|
|
8
|
-
client;
|
|
9
|
-
/**
|
|
10
|
-
* Creates an instance of RedisTtlCache.
|
|
11
|
-
*
|
|
12
|
-
* @param {number} ttlMilliseconds - The default TTL in milliseconds.
|
|
13
|
-
* @param {RedisClientOptions} [hostingOptions] - The Redis client options.
|
|
14
|
-
*/
|
|
15
|
-
constructor(ttlMilliseconds, hostingOptions) {
|
|
16
|
-
this.ttlMilliseconds = ttlMilliseconds;
|
|
17
|
-
// Connects to localhost:6379 by default
|
|
18
|
-
// url usage: redis[s]://[[username][:password]@][host][:port][/db-number]
|
|
19
|
-
this.client = createClient(hostingOptions);
|
|
20
|
-
this.client.on('error', (err) => console.error('Redis Client Error', err));
|
|
21
|
-
this.client.connect().catch(console.error);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Puts a record into the Redis cache.
|
|
25
|
-
*
|
|
26
|
-
* @param {TtlCacheRecord} param0 - The cache record to put into the cache.
|
|
27
|
-
* @returns {Promise<void>} - A promise that resolves when the record is put into the cache.
|
|
28
|
-
*/
|
|
29
|
-
async putRecord({ key, value, ttlMilliseconds = this.ttlMilliseconds }) {
|
|
30
|
-
await this.client.set(key, JSON.stringify(value), {
|
|
31
|
-
PX: ttlMilliseconds
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Deletes a record from the Redis cache.
|
|
36
|
-
*
|
|
37
|
-
* @param {string} cacheRecordKey - The key of the cache record to delete.
|
|
38
|
-
* @returns {Promise<void>} - A promise that resolves when the record is deleted from the cache.
|
|
39
|
-
*/
|
|
40
|
-
async deleteRecord(cacheRecordKey) {
|
|
41
|
-
await this.client.del(cacheRecordKey);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Reads a record from the Redis cache.
|
|
45
|
-
*
|
|
46
|
-
* @param {string} cacheRecordKey - The key of the cache record to read.
|
|
47
|
-
* @returns {Promise<TtlCacheRecord>} - A promise that resolves with the cache record.
|
|
48
|
-
* @throws {Error} - Throws an error if the record is not found.
|
|
49
|
-
*/
|
|
50
|
-
async readRecord(cacheRecordKey) {
|
|
51
|
-
const value = await this.client.get(cacheRecordKey);
|
|
52
|
-
if (value === null) {
|
|
53
|
-
throw new Error(`Record not found for key: ${cacheRecordKey}`);
|
|
54
|
-
}
|
|
55
|
-
const ttl = await this.client.ttl(cacheRecordKey); // Fetch TTL from Redis
|
|
56
|
-
return {
|
|
57
|
-
key: cacheRecordKey,
|
|
58
|
-
value: JSON.parse(value),
|
|
59
|
-
ttlMilliseconds: ttl * 1000
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Lists the keys in the Redis cache that match a pattern prefix.
|
|
64
|
-
*
|
|
65
|
-
* @param {string} pattern_prefix - The pattern prefix to match.
|
|
66
|
-
* @returns {Promise<string[]>} - A promise that resolves with an array of keys matching the pattern prefix.
|
|
67
|
-
*/
|
|
68
|
-
async listKeys(pattern_prefix) {
|
|
69
|
-
const keys = await this.client.keys(pattern_prefix + '*');
|
|
70
|
-
return keys;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Peeks at a record in the Redis cache to check if it exists.
|
|
74
|
-
*
|
|
75
|
-
* @param {string} cacheRecordKey - The key of the cache record to peek at.
|
|
76
|
-
* @returns {Promise<boolean>} - A promise that resolves with a boolean indicating if the record exists.
|
|
77
|
-
*/
|
|
78
|
-
async peekRecord(cacheRecordKey) {
|
|
79
|
-
const result = await this.client.exists(cacheRecordKey);
|
|
80
|
-
return result === 1;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Disconnects the Redis client.
|
|
84
|
-
*
|
|
85
|
-
* @returns {Promise<void>} - A promise that resolves when the client is disconnected.
|
|
86
|
-
*/
|
|
87
|
-
async disconnect() {
|
|
88
|
-
await this.client.quit();
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Gets the default TTL (Time-To-Live) in milliseconds.
|
|
92
|
-
*
|
|
93
|
-
* @returns {number} - The TTL in milliseconds.
|
|
94
|
-
*/
|
|
95
|
-
getTtlMilliseconds() {
|
|
96
|
-
return this.ttlMilliseconds;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ttlCacheRecord.types.d.ts","sourceRoot":"","sources":["../../../../dist/cache/types/ttlCacheRecord.types.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|