Skip to content

Commit f8fee01

Browse files
committed
Update cache timeout to 1 minute
1 parent deaf9cb commit f8fee01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

container_provisioner/database/redis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func SetCache(key string, value any) {
2929

3030
ctx := context.Background()
3131
// Timeout set to 5 minutes
32-
err = rdb.Set(ctx, key, string(encodedValue), time.Minute*5).Err()
32+
err = rdb.Set(ctx, key, string(encodedValue), time.Minute*1).Err()
3333
utils.ErrorHandler(err)
3434
}
3535

0 commit comments

Comments
 (0)