Skip to content

Commit

Permalink
cache: fixed memory cache notify
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeybannov committed Jan 27, 2022
1 parent 1908af6 commit b7f0ffc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common/ASC.Common/Caching/MemoryCacheNotify.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ public void Subscribe(Action<T> onchange, CacheNotifyAction notifyAction)
{
if (onchange != null)
{
var key = GetKey(notifyAction);
_actions.TryAdd(key, new List<Action<T>>());
_actions[key].Add(onchange);
_actions.GetOrAdd(GetKey(notifyAction), new List<Action<T>>())
.Add(onchange);
}
}

Expand Down

0 comments on commit b7f0ffc

Please sign in to comment.