pub fn create_dsl_cache(max_size_bytes: usize) -> DSLCacheExpand description
Create a new DSL cache with specified size limit
This function creates a cache for storing compiled DSL artifacts to improve performance of repeated compilations.
§Arguments
max_size_bytes- Maximum size of the cache in bytes
§Returns
A DSLCache instance configured with the specified size limit
§Examples
use sklears_core::dsl_impl::create_dsl_cache;
let cache = create_dsl_cache(1024 * 1024); // 1MB cache
let stats = cache.stats();
assert_eq!(stats.hits, 0);