Skip to content

Commit 0552412

Browse files
committed
doc: minor update about timeout and cache
1 parent c62907b commit 0552412

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

GUIDE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ as this combo.
1818

1919
Production versions:
2020

21-
+ sqlc: v2.2.0-wicked-fork
21+
+ sqlc: v2.2.1-wicked-fork
2222
+ dcache: v0.2.0 (Note: redis/v8 users please use v0.1.4)
2323
+ wgpx: v0.2.3
2424

@@ -365,6 +365,8 @@ The best practice is to cache frequently queried objects, especially
365365
#### Timeout
366366

367367
Because setting timeout for queries is such an important practice, starting from v2.2.0, we make this a mandatory option.
368+
If cache is enabled, the timeout duration applies to the whole "query" process, including trying to read from cache and
369+
actual database query.
368370

369371
The following code shows how to use set a timeout option for a query.
370372

0 commit comments

Comments
 (0)