mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
8 lines
265 B
C#
8 lines
265 B
C#
namespace Kruzya.TelegramBot.Core.Cache;
|
|
|
|
public interface ICacheStorage<TKey, TValue>
|
|
{
|
|
public bool TryGetValue(TKey key, out TValue value);
|
|
public void SetValue(TKey key, TValue value, int timeToLive);
|
|
public TValue GetOr(TKey key, TValue value);
|
|
} |