Initial work on cache

This commit is contained in:
2020-03-03 11:36:00 +04:00
parent ef7d8a7d14
commit 4a4ce10c04
2 changed files with 103 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
using System;
namespace Kruzya.TelegramBot.Core.Cache
{
public interface ICacheStorage<TKey, TValue>
{
public bool TryGetValue(TKey key, ref TValue value);
public void SetValue(TKey key, TValue value, int timeToLive);
}
}