We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cb930f commit c0ca9b2Copy full SHA for c0ca9b2
1 file changed
packages/doc/docs/develop/cache.mdx
@@ -63,6 +63,18 @@ cache:
63
64
In this configuration, the `cache_departments` table will be utilized within the `{% cache %}` tag.
65
66
+Also, you can add the refresh interval configuration in the yaml file in the cache section using the `refreshTime` keyword.
67
+
68
+```yaml
69
+cache:
70
+ - cacheTableName: 'cache_departments' # The name of the table in the cache layer storage
71
+ ...
72
+ refreshTime: { every: '5m' }
73
+```
74
75
+:::info
76
+The time format used in `refreshTime` should be compliant with the [`ms`](https://www.npmjs.com/package/ms) package.
77
+:::
78
79
## Reusing Cached Results
80
VulcanSQL provides the ability to keep the query result from the cache layer in a variable, which can be reused in subsequent queries. For example:
0 commit comments