ICacheManager cacheManager = CacheFactory.Build(); cacheManager.Add("key1", "value1");
ICacheManager cacheManager = CacheFactory.Build(); cacheManager.Add("key1", "value1", ExpirationMode.Absolute, TimeSpan.FromMinutes(10));
ICacheManager cacheManager = CacheFactory.Build(); var value = cacheManager.Get("key1");
ICacheManager cacheManager = CacheFactory.Build(); cacheManager.Remove("key1");In this example, we create a cache manager instance and remove an item with key "key1" from the cache. These examples use the C# package library: CacheManager.Core.