1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 21:34:39 -05:00
poke/core/InnerTube/CacheItem.cs

16 lines
247 B
C#
Raw Normal View History

2022-08-05 15:33:38 -04:00
using System;
namespace InnerTube
{
public class CacheItem<T>
{
public T Item;
public DateTimeOffset ExpireTime;
public CacheItem(T item, TimeSpan expiresIn)
{
Item = item;
ExpireTime = DateTimeOffset.Now.Add(expiresIn);
}
}
}