Skip to content

Commit 7f3b87a

Browse files
author
Albo Vieira
committed
fix options redis ttl
1 parent b834648 commit 7f3b87a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/models/options.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ export interface Options {
55
}
66
export interface RedisOptions extends Options {
77
host: string;
8-
db: string;
8+
db: number;
99
port: number;
1010
keyPrefix?: string;
11-
lazyConnect?: string;
11+
lazyConnect?: boolean;
1212
maxRetriesPerRequest?: number;
1313
family?: string;
1414
path?: string;

src/models/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ProviderName } from './provider';
22

33
export interface Options {
44
provider: ProviderName;
5-
ttl: number | string;
5+
ttl?: number | string;
66
}
77

88
export interface RedisOptions extends Options {

0 commit comments

Comments
 (0)