invalidate_cache

Function invalidate_cache 

Source
pub fn invalidate_cache(cache_name: &str) -> bool
Expand description

Invalidate a specific cache by its name

This function invalidates a single cache identified by its name.

§Arguments

  • cache_name - The name of the cache to invalidate

§Returns

true if the cache was found and invalidated, false otherwise

§Examples

use cachelito_core::invalidate_cache;

// Invalidate a specific cache:
invalidate_cache("get_user_profile");