@relicx_/kernel 1.1.50 → 1.1.51
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/index.d.ts +6 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -181,6 +181,9 @@ interface IRedisInterface {
|
|
|
181
181
|
Del(key: string): Promise<boolean>;
|
|
182
182
|
MSet(datas: any): Promise<boolean>;
|
|
183
183
|
MGet(keys: string[]): Promise<string[]>;
|
|
184
|
+
HGet(key: string): Promise<Record<string, string>>;
|
|
185
|
+
HGetField(key: string, field: string): Promise<string>;
|
|
186
|
+
HSet(key: string, object: object, ttl?: number): Promise<boolean>;
|
|
184
187
|
/**
|
|
185
188
|
* @param pattern like this: "user:*"
|
|
186
189
|
*/
|
|
@@ -196,6 +199,9 @@ declare class RedisConnection extends DBConnection implements IRedisInterface {
|
|
|
196
199
|
Del(key: string): Promise<boolean>;
|
|
197
200
|
MSet(data: any): Promise<boolean>;
|
|
198
201
|
MGet(keys: string[]): Promise<string[]>;
|
|
202
|
+
HGet(key: string): Promise<Record<string, string>>;
|
|
203
|
+
HGetField(key: string, field: string): Promise<string>;
|
|
204
|
+
HSet(key: string, object: object, ttl?: number): Promise<boolean>;
|
|
199
205
|
Select(db: number): Promise<"OK">;
|
|
200
206
|
ScanKeys(pattern: string): Promise<string[]>;
|
|
201
207
|
}
|