Expand description
Cache Hints Parser
Parses SQL comments to extract cache control hints.
§Supported Hints
/* helios:cache=skip */ -- Skip caching entirely
/* helios:cache_ttl=60 */ -- Override TTL (seconds)
/* helios:cache=semantic */ -- Enable semantic caching
/* helios:cache_tables=a,b */ -- Override table dependencies
/* helios:cache_refresh */ -- Force cache refreshStructs§
- Cache
Hint - Parsed cache hints from a SQL query
Enums§
- Cache
Level Hint - Hint for specific cache level
Functions§
- is_
cacheable_ query - Check if a query is cacheable (SELECT, VALUES, etc.)
- is_
write_ operation - Check if SQL is a write operation (for cache invalidation)
- parse_
cache_ hints - Parse cache hints from a SQL query
- strip_
hints - Strip cache hints from SQL query