示例#1
0
 public bool Add(ArchitectureCacheKey architectureCacheKey, Architecture architecture)
 {
     return(Cache.TryAdd(architectureCacheKey, architecture));
 }
示例#2
0
 public Architecture TryGetArchitecture(ArchitectureCacheKey architectureCacheKey)
 {
     return(Cache.TryGetValue(architectureCacheKey, out var matchArchitecture) ? matchArchitecture : null);
 }