Fixes: #U4-2043 - User Type cache is not invalidated in LB scenarios

This commit is contained in:
Shannon Deminick
2013-04-04 03:43:05 +06:00
parent 296c24f829
commit b56f8c8fb3
8 changed files with 222 additions and 333 deletions

View File

@@ -13,6 +13,23 @@ namespace Umbraco.Web.Cache
/// </summary>
internal static class DistributedCacheExtensions
{
#region User type cache
public static void RemoveUserTypeCache(this DistributedCache dc, int userTypeId)
{
dc.Remove(new Guid(DistributedCache.UserTypeCacheRefresherId), userTypeId);
}
public static void RefreshUserTypeCache(this DistributedCache dc, int userTypeId)
{
dc.Refresh(new Guid(DistributedCache.UserTypeCacheRefresherId), userTypeId);
}
public static void RefreshAllUserTypeCache(this DistributedCache dc)
{
dc.RefreshAll(new Guid(DistributedCache.UserTypeCacheRefresherId));
}
#endregion
#region User cache
public static void RemoveUserCache(this DistributedCache dc, int userId)
{