Skip to content

Commit

Permalink
Merge pull request #48 from litencatt/dbs-cache-1h
Browse files Browse the repository at this point in the history
Extend dbs cache ttl to 1H
  • Loading branch information
litencatt committed Dec 23, 2023
2 parents c42c076 + bfad0e4 commit e3c6d0d
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 e3c6d0d

Please sign in to comment.