Ejemplo n.º 1
0
        private void CacheDeleteAction(RedisChannel channel, RedisValue message)
        {
            var deleteNotification = _serialize.Deserialize <CacheNotificationObject>(message);

            _localCache.Remove(deleteNotification.CacheKey);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 退出互斥操作
 /// </summary>
 /// <param name="managerId"></param>
 /// <returns></returns>
 public static bool ExitMutexOperate(Guid managerId)
 {
     return(localCache.Remove(string.Concat(MutexOperate, managerId)));
 }