Skip to content
This project is part of pgEdge Labs and is under active development. APIs and features may change without notice.

cache_hit_rate

Get current cache hit rate percentage.

Signature

semantic_cache.cache_hit_rate() RETURNS float4

Returns

  • float4: Hit rate as percentage (0-100)

Example

SELECT semantic_cache.cache_hit_rate();
-- Returns: 80.93

See Also