Exemplo n.º 1
0
        /// <summary>
        /// 清除缓存
        /// </summary>
        protected virtual void ClearWorkflowCache(string url)
        {
            var flowid = HttpUtility.ParseQueryString(url).Get("flowid");
            var key    = GetFlowCacheKey(flowid.Convert <long>());

            CacheRepository.Remove(key);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 清除缓存
        /// </summary>
        protected virtual void ClearWorkflowCache()
        {
            Action updateGroupAccountCache = UpdateGroupAccountCache;

            updateGroupAccountCache.BeginInvoke(null, null);

            CacheRepository.Remove(CacheKey);
            CacheRepository.Remove(WorkflowLevelCacheKey);
        }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// 更新缓存
        /// </summary>
        /// <param name="accountId"></param>
        protected virtual void UpdateAuditorAccountCache(long accountId)
        {
            var key = GetAuditorAccountCacheKey(accountId);

            CacheRepository.Remove(key);
        }