/// <summary> /// 清除缓存 /// </summary> protected virtual void ClearWorkflowCache(string url) { var flowid = HttpUtility.ParseQueryString(url).Get("flowid"); var key = GetFlowCacheKey(flowid.Convert <long>()); CacheRepository.Remove(key); }
/// <summary> /// 清除缓存 /// </summary> protected virtual void ClearWorkflowCache() { Action updateGroupAccountCache = UpdateGroupAccountCache; updateGroupAccountCache.BeginInvoke(null, null); CacheRepository.Remove(CacheKey); CacheRepository.Remove(WorkflowLevelCacheKey); }
public void Remove() { var repository = new CacheRepository <string, string>(); repository.TrySetValue("key1", "value1"); Assert.Equal(1, repository.Count()); repository.Remove("key1"); Assert.Equal(0, repository.Count()); }
private void RemoveSessionStateStoreData(string id) { id.ShouldNotBeWhiteSpace("id"); if (IsDebugEnabled) { log.Debug("세션 정보를 캐시에서 삭제합니다... session id=[{0}]", id); } CacheRepository.Remove(id); if (IsDebugEnabled) { log.Debug("세션 정보를 캐시에서 삭제했습니다!!! session id=[{0}]", id); } }
/// <summary> /// 更新缓存 /// </summary> /// <param name="accountId"></param> protected virtual void UpdateAuditorAccountCache(long accountId) { var key = GetAuditorAccountCacheKey(accountId); CacheRepository.Remove(key); }