namespace Rib.Common.Helpers.Cache
{
    using JetBrains.Annotations;
    using Rib.Common.Models.Metadata;

    /// <summary>
    ///     ×èñòèëüùèê êåøà
    /// </summary>
    [BindTo(typeof(CacheCleaner))]
    public interface ICacheCleaner
    {
        /// <summary>
        ///     Î÷èñòèòü âñå êåøè
        /// </summary>
        void Clean();

        /// <summary>
        ///     Î÷èñòèòü èòåì êåøà ïî èìåíè
        /// </summary>
        /// <param name="fullName">Ïîëíûé êëþ÷ èòåìà</param>
        void Clean([NotNull] string fullName);
    }
}