Skip to content

Commit ccfb7db

Browse files
increase expiration date from 1d to 365d
1 parent 0c0c3c5 commit ccfb7db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/services/azureFileSearch/fileSearchResultsStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const FileSearchResultsStore = {
1010
async saveResults(fileSearchId: string, results: FileSearchResultData[], user: User) {
1111
const key = this.getKey(user, fileSearchId)
1212
await redisClient.set(key, JSON.stringify(results), {
13-
EX: 60 * 60 * 24, // 1 day expiration time
13+
EX: 60 * 60 * 24 * 365, // 365 day expiration time
1414
})
1515
},
1616
async getResults(fileSearchId: string, user: User): Promise<FileSearchResultData[] | null> {

0 commit comments

Comments
 (0)