2020-02-13 07:46:49 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2019-11-27 14:10:48 +01:00
|
|
|
namespace Umbraco.Core.Cache
|
|
|
|
|
{
|
2020-02-13 07:46:49 +01:00
|
|
|
public interface IRequestCache : IAppCache, IEnumerable<KeyValuePair<string, object>>
|
2019-11-27 14:10:48 +01:00
|
|
|
{
|
|
|
|
|
bool Set(string key, object value);
|
|
|
|
|
bool Remove(string key);
|
2019-12-04 13:30:46 +11:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Returns true if the request cache is available otherwise false
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool IsAvailable { get; }
|
2019-11-27 14:10:48 +01:00
|
|
|
}
|
|
|
|
|
}
|