summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Caching/ICacheRepository.cs
blob: 5de7e73122142fdf2e7849fb691b8db8e80bfc54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
using System;

namespace StardewModdingAPI.Web.Framework.Caching
{
    /// <summary>Encapsulates logic for accessing data in the cache.</summary>
    internal interface ICacheRepository
    {
        /// <summary>Whether cached data is stale.</summary>
        /// <param name="lastUpdated">The date when the data was updated.</param>
        /// <param name="staleMinutes">The age in minutes before data is considered stale.</param>
        bool IsStale(DateTimeOffset lastUpdated, int staleMinutes);
    }
}