Skip to content

Commit

Permalink
Extend dbs cache ttl to 1H
Browse files Browse the repository at this point in the history
  • Loading branch information
litencatt committed Dec 21, 2023
1 parent c42c076 commit bfad0e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as notion from "./notion"

export const getDatabases = async () => {
const dbsKey = "dbs"
const ttlInSeconds = 300
const ttlInSeconds = 3600
const cachedDbs = await redis.get(dbsKey)
if (cachedDbs) {
return JSON.parse(cachedDbs)
Expand Down

0 comments on commit bfad0e4

Please sign in to comment.