Skip to content

Commit

Permalink
feat: add flags key to driver interface (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j authored Dec 30, 2024
1 parent 7782a7e commit 9e15ab9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ export type GetKeysOptions = TransactionOptions & {
maxDepth?: number;
};

export interface DriverFlags {
maxDepth?: boolean;
ttl?: boolean;
}

export interface Driver<OptionsT = any, InstanceT = any> {
name?: string;
flags?: DriverFlags;
options?: OptionsT;
getInstance?: () => InstanceT;
hasItem: (key: string, opts: TransactionOptions) => MaybePromise<boolean>;
Expand Down

0 comments on commit 9e15ab9

Please sign in to comment.