CQRS.Talk.Sample5.CQRS.Decorator.Query.CacheProvider.Set C# (CSharp) Метод

Set() публичный Метод

public Set ( string cacheKey, object cachedResult, System.TimeSpan cacheDuration ) : void
cacheKey string
cachedResult object
cacheDuration System.TimeSpan
Результат void
        public void Set(string cacheKey, object cachedResult, TimeSpan cacheDuration)
        {
            cachedObjects[cacheKey] = cachedResult;
            // ignore complications here and cache duration 
            // for simplicity of the sample
        }
    }