mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 09:38:25 +01:00
16 lines
247 B
C#
16 lines
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);
|
||
|
}
|
||
|
}
|
||
|
}
|