Skip to content

Commit 5418cc4

Browse files
committed
CSC POC
1 parent 0cd6915 commit 5418cc4

File tree

8 files changed

+684
-34
lines changed

8 files changed

+684
-34
lines changed

packages/client/lib/RESP/types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ export type CommandArguments = Array<RedisArgument> & { preserve?: unknown };
263263
// response?: ResponsePolicies | null;
264264
// };
265265

266+
export interface CacheInfo {
267+
cacheKey: string;
268+
redisKeys: Array<string>
269+
}
270+
266271
export type Command = {
267272
FIRST_KEY_INDEX?: number | ((this: void, ...args: Array<any>) => RedisArgument | undefined);
268273
IS_READ_ONLY?: boolean;
@@ -275,6 +280,7 @@ export type Command = {
275280
transformArguments(this: void, ...args: Array<any>): CommandArguments;
276281
TRANSFORM_LEGACY_REPLY?: boolean;
277282
transformReply: TransformReply | Record<RespVersions, TransformReply>;
283+
getCacheInfo?: (...args: Array<any>) => CacheInfo | undefined;
278284
};
279285

280286
export type RedisCommands = Record<string, Command>;

0 commit comments

Comments
 (0)