AdvantageCacheManager..::..Get<(Of <(<'T>)>)> Method
Retrieves a cached object of type T stored under the specified key.
The key is automatically scoped by domain and language.
Namespace:
AdvantageCMS.Core.Utils.CacheAssembly: AdvantageCMS.Core (in AdvantageCMS.Core.dll)
Syntax
Type Parameters
- T
- The type of the cached object. Must be a reference type.
Parameters
- key
- Type: String
The cache key prefix used to look up the item.
Return Value
The cached object, or null if not found.Examples
C#
var cache = new AdvantageCacheManager(eAdvantageCacheContainerType.WebServer, 1, 1); var menu = cache.Get<NavigationMenu>("main_nav"); if (menu == null) { menu = LoadNavigationMenu(); cache.Store<NavigationMenu>("main_nav", menu, "navigation", 60); }

