Interface ICacheInstructionRepository
Represents a repository for CacheInstruction entities.
Namespace: Umbraco.Cms.Core.Persistence.Repositories
Assembly: Umbraco.Core.dll
Syntax
public interface ICacheInstructionRepository : IRepository
Methods
View SourceAdd(CacheInstruction)
Adds a new cache instruction record.
Declaration
void Add(CacheInstruction cacheInstruction)
Parameters
Type | Name | Description |
---|---|---|
CacheInstruction | cacheInstruction |
CountAll()
Gets the count of pending cache instruction records.
Declaration
int CountAll()
Returns
Type | Description |
---|---|
System.Int32 |
CountPendingInstructions(Int32)
Gets the count of pending cache instructions.
Declaration
int CountPendingInstructions(int lastId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | lastId |
Returns
Type | Description |
---|---|
System.Int32 |
DeleteInstructionsOlderThan(DateTime)
Deletes cache instructions older than the provided date.
Declaration
void DeleteInstructionsOlderThan(DateTime pruneDate)
Parameters
Type | Name | Description |
---|---|---|
DateTime | pruneDate |
Exists(Int32)
Checks to see if a single cache instruction by Id exists.
Declaration
bool Exists(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id |
Returns
Type | Description |
---|---|
System.Boolean |
GetMaxId()
Gets the most recent cache instruction record Id.
Declaration
int GetMaxId()
Returns
Type | Description |
---|---|
System.Int32 |
GetPendingInstructions(Int32, Int32)
Gets a collection of cache instructions created later than the provided Id.
Declaration
IEnumerable<CacheInstruction> GetPendingInstructions(int lastId, int maxNumberToRetrieve)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | lastId | Last id processed. |
System.Int32 | maxNumberToRetrieve | The maximum number of instructions to retrieve. |
Returns
Type | Description |
---|---|
IEnumerable<CacheInstruction> |