mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
11 lines
306 B
C#
11 lines
306 B
C#
using System;
|
|
|
|
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);
|
|
}
|
|
} |