Fix memory usage command in CacheService and add support directory to package.json

- Updated the memory command in CacheService from "usage" to "USAGE" for consistency with Redis commands.
- Added support directory paths to package.json to enhance module resolution for the support features.
This commit is contained in:
barsa 2025-11-18 15:20:52 +09:00
parent 8b78d890e4
commit 4d45eca503
2 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,7 @@ export class CacheService {
await this.scanPattern(pattern, async keys => { await this.scanPattern(pattern, async keys => {
const pipeline = this.redis.pipeline(); const pipeline = this.redis.pipeline();
keys.forEach(key => { keys.forEach(key => {
pipeline.memory("usage", key); pipeline.memory("USAGE", key);
}); });
const results = await pipeline.exec(); const results = await pipeline.exec();
if (!results) { if (!results) {

View File

@ -30,6 +30,8 @@
"./sim/providers/freebit": "./dist/sim/providers/freebit/index.js", "./sim/providers/freebit": "./dist/sim/providers/freebit/index.js",
"./subscriptions": "./dist/subscriptions/index.js", "./subscriptions": "./dist/subscriptions/index.js",
"./subscriptions/*": "./dist/subscriptions/*.js", "./subscriptions/*": "./dist/subscriptions/*.js",
"./support": "./dist/support/index.js",
"./support/*": "./dist/support/*.js",
"./toolkit": "./dist/toolkit/index.js", "./toolkit": "./dist/toolkit/index.js",
"./toolkit/*": "./dist/toolkit/*.js" "./toolkit/*": "./dist/toolkit/*.js"
}, },