AdvantageCacheManager Class
Provides a sealed cache manager that delegates storage operations to a configured
IAdvantageCacheContainer (web server or database). Cache keys are
automatically scoped by domain and language identifiers.
Namespace:
AdvantageCMS.Core.Utils.CacheAssembly: AdvantageCMS.Core (in AdvantageCMS.Core.dll)
Examples
C#
// Create a web-server-backed cache manager for domain 1, language 1 var cache = new AdvantageCacheManager(eAdvantageCacheContainerType.WebServer, 1, 1); // Store an object in the cache under the "products" category with a 30-minute expiry var catalog = GetProductCatalog(); cache.Store<ProductCatalog>("product_catalog", catalog, "products", 30); // Retrieve the cached object var cached = cache.Get<ProductCatalog>("product_catalog"); if (cached != null) { // Use the cached catalog } // Invalidate all items in the "products" category cache.Invalidate(new[] { "products" }); // Remove a single cached item by key cache.ClearItem("product_catalog");

