2020-02-13 07:46:49 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
namespace Umbraco.Cms.Core.Cache
|
2019-11-27 14:10:48 +01:00
|
|
|
{
|
2021-12-16 13:44:20 +01:00
|
|
|
public interface IRequestCache : IAppCache, IEnumerable<KeyValuePair<string, object?>>
|
2019-11-27 14:10:48 +01:00
|
|
|
{
|
2022-01-21 11:43:58 +01:00
|
|
|
bool Set(string key, object? value);
|
2019-11-27 14:10:48 +01:00
|
|
|
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
|
|
|
}
|
|
|
|
|
}
|