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