Skip to content

Commit

Permalink
feat: allow setting cache to null
Browse files Browse the repository at this point in the history
  • Loading branch information
boudra committed Oct 13, 2023
1 parent eaac824 commit 34a1423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export class IndexerBuilder<
return new IndexerBuilder({ ...this.options, onEvent });
}

cache(cache: Config<TAbis>["cache"]): IndexerBuilder<TAbis, TContext> {
return new IndexerBuilder({ ...this.options, cache: cache });
cache(cache: Config<TAbis>["cache"] | null): IndexerBuilder<TAbis, TContext> {
return new IndexerBuilder({ ...this.options, cache: cache ?? undefined });
}

subscriptionStore(
Expand Down

0 comments on commit 34a1423

Please sign in to comment.