Skip to main content

handle_cache_command

Function handle_cache_command 

Source
pub fn handle_cache_command(cache: &CachePlugin, body: &str) -> (u16, String)
Expand description

Handle a POST /cache (or POST /api/cache) request body.

Parses the JSON body, extracts the cmd field, and dispatches to the appropriate CachePlugin method. Returns (http_status, json_body).