Comparing version 0.0.5 to 0.0.6
@@ -43,3 +43,4 @@ import { RedisClient } from "redis"; | ||
*/ | ||
hGet(key: string, field: string): Promise<number>; | ||
hGet(key: string, field: string): Promise<string>; | ||
hGetNumber(key: string, field: string): Promise<number>; | ||
/** | ||
@@ -46,0 +47,0 @@ * HashMap--写入 |
@@ -95,3 +95,3 @@ "use strict"; | ||
else { | ||
resolve(Number(reply) || 0); | ||
resolve(reply); | ||
} | ||
@@ -101,2 +101,6 @@ }); | ||
} | ||
async hGetNumber(key, field) { | ||
const reply = await this.hGet(key, field); | ||
return Number(reply) || 0; | ||
} | ||
/** | ||
@@ -103,0 +107,0 @@ * HashMap--写入 |
{ | ||
"name": "redis_mgr", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"private": false, | ||
@@ -10,5 +10,7 @@ "scripts": { | ||
"dependencies": { | ||
"@types/redis": "^2.8.16", | ||
"redis": "^2.8.0" | ||
}, | ||
"devDependencies": { | ||
"@types/redis": "^2.8.16", | ||
"@types/node": "^13.9.1" | ||
@@ -15,0 +17,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47143
393
2
2
+ Added@types/redis@^2.8.16
+ Added@types/node@22.9.4(transitive)
+ Added@types/redis@2.8.32(transitive)
+ Addedundici-types@6.19.8(transitive)