TwoLevelCacheInvalidationExtensions.InvalidateOnCommit method (1 of 3)
namespace: Serenity.Services assembly: Serenity.Net.Services
Invalidates cached items on commit for specified row type and any related field types specified using TwoLevelCached attributes on the row type.
public static void InvalidateOnCommit(this ITwoLevelCache cache, IUnitOfWork uow, IRow row)
parameter | description |
---|---|
cache | Cache |
uow | Unit of work |
row | Row type |
Exceptions
exception | condition |
---|---|
ArgumentNullException | Cache is null |
See Also
- interface ITwoLevelCache
- interface IUnitOfWork
- interface IRow
- class TwoLevelCacheInvalidationExtensions
TwoLevelCacheInvalidationExtensions.InvalidateOnCommit method (2 of 3)
namespace: Serenity.Services assembly: Serenity.Net.Services
Invalidates cached items related to fields class group key and any related fields types specified using TwoLevelCached attributes on the row type.
public static void InvalidateOnCommit(this ITwoLevelCache cache, IUnitOfWork uow,
RowFieldsBase fields)
parameter | description |
---|---|
cache | Cache |
uow | Unit of work |
fields | Fields type |
Exceptions
exception | condition |
---|---|
ArgumentNullException | Cache is null |
See Also
- interface ITwoLevelCache
- interface IUnitOfWork
- class RowFieldsBase
- class TwoLevelCacheInvalidationExtensions
TwoLevelCacheInvalidationExtensions.InvalidateOnCommit method (3 of 3)
namespace: Serenity.Services assembly: Serenity.Net.Services
Invalidates cached items related to a group key when the unit of work commits
public static void InvalidateOnCommit(this ITwoLevelCache cache, IUnitOfWork uow, string groupKey)
parameter | description |
---|---|
cache | Cache |
uow | Unit of work |
groupKey | Group key |
Exceptions
exception | condition |
---|---|
ArgumentNullException | cache is null |
See Also
- interface ITwoLevelCache
- interface IUnitOfWork
- class TwoLevelCacheInvalidationExtensions