Skip to content

Commit

Permalink
fix: set expiry on cache docs debug (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
RohinBhargava authored Oct 10, 2024
1 parent 8f4fbec commit a844a2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class RedisDocsDefinitionStore {
}

public async set({ url, value }: { url: URL; value: CachedDocsResponse }): Promise<void> {
await this.client.set(url.hostname, JSON.stringify(value));
await this.client.set(url.hostname, JSON.stringify(value), "EX", 60 * 60 * 24 * 7);
}

public async delete({ url }: { url: URL }): Promise<void> {
Expand Down

0 comments on commit a844a2f

Please sign in to comment.