Interface ICacheInstructionRepository
Represents a repository for Cache
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 |
---|---|---|
Cache |
cacheInstruction |
CountAll()
Gets the count of pending cache instruction records.
Declaration
int CountAll()
Returns
Type | Description |
---|---|
System. |
CountPendingInstructions(Int32)
Gets the count of pending cache instructions.
Declaration
int CountPendingInstructions(int lastId)
Parameters
Type | Name | Description |
---|---|---|
System. |
lastId |
Returns
Type | Description |
---|---|
System. |
DeleteInstructionsOlderThan(DateTime)
Deletes cache instructions older than the provided date.
Declaration
void DeleteInstructionsOlderThan(DateTime pruneDate)
Parameters
Type | Name | Description |
---|---|---|
Date |
pruneDate |
Exists(Int32)
Checks to see if a single cache instruction by Id exists.
Declaration
bool Exists(int id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id |
Returns
Type | Description |
---|---|
System. |
GetMaxId()
Gets the most recent cache instruction record Id.
Declaration
int GetMaxId()
Returns
Type | Description |
---|---|
System. |
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. |
lastId | Last id processed. |
System. |
maxNumberToRetrieve | The maximum number of instructions to retrieve. |
Returns
Type | Description |
---|---|
IEnumerable<Cache |