类库说明文档
![]() | JHCacheGetTtype Method (String) |
获取当前应用程序的 System.Web.Caching.Cache 中存放的指定键的值
如果异常或获取为 null,则返回当前类型的默认值 default(Ttype)
Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)

C#
public static Ttype Get<Ttype>( string key )
Parameters
- key
- Type: SystemString
缓存键
Type Parameters
- Ttype
- 最终要得到的数据类型
Return Value
Type: Ttype返回指定类型的缓存值
