poke/core/InnerTube/CacheItem.cs
2022-08-05 22:33:38 +03:00

16 lines
No EOL
247 B
C#

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);
}
}
}