GetCachedObject gets an object from the Cache
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static TObject GetCachedObject<TObject>( CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired ) |
Visual Basic |
---|
Public Shared Function GetCachedObject(Of TObject) ( cacheItemArgs As CacheItemArgs, cacheItemExpired As CacheItemExpiredCallback ) As TObject |
Parameters
- cacheItemArgs
- Type: DotNetNuke.Common.Utilities..::..CacheItemArgs
A CacheItemArgs object that provides parameters to manage the cache AND to fetch the item if the cache has expired
- cacheItemExpired
- Type: DotNetNuke.Common.Utilities..::..CacheItemExpiredCallback
A CacheItemExpiredCallback delegate that is used to repopulate the cache if the item has expired
Type Parameters
- TObject
- The type of th object to fetch