private bool TryGetCachedRepo(string lookupKey, out InstanceSecurityRepositoryCacheObject securityRepositoryCacheObject) { _cacheLock.EnterReadLock(); try { return(CacheProviderExtensions.TryGetCachedObject(_cacheProvider, lookupKey, out securityRepositoryCacheObject)); } finally { _cacheLock.ExitReadLock(); } }
private bool TryGetCachedValue(string lookupKey, out string value) { _cacheLock.EnterReadLock(); try { return(CacheProviderExtensions.TryGetCachedObject(_cacheProvider, lookupKey, out value)); } finally { _cacheLock.ExitReadLock(); } }