poke/core/InnerTube/CacheItem.cs

16 lines
247 B
C#
Raw Permalink Normal View History

2022-08-05 21:33:38 +02: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);
}
}
}