Skip to main content

cache_stats_handler

Function cache_stats_handler 

Source
pub async fn cache_stats_handler<A: DatabaseAdapter>(
    __arg0: State<AppState<A>>,
) -> Result<Json<ApiResponse<CacheStatsResponse>>, ApiError>
Expand description

Get cache statistics.

Returns current cache metrics including entry count, enabled status, and TTL.

ยงErrors

This handler currently always succeeds; it is infallible.

Requires admin token authentication.