配置值缓存,用于缓存类型转换结果
internal sealed class ValueCache
Inheritance System.Object 🡒 ValueCache
| Properties | |
|---|---|
| Version | 当前缓存版本 |
| Methods | |
|---|---|
| Clear() | 清空所有缓存 |
| GetStats() | 获取缓存统计信息 |
| Invalidate(string) | 使指定键的所有类型缓存失效 |
| Invalidate(IEnumerable<string>) | 使多个键的缓存失效 |
| Set<T>(string, T) | 设置缓存值 |
| TryGet<T>(string, T) | 尝试从缓存获取值 |