mirror of
https://codeberg.org/ashley/poke.git
synced 2025-06-10 22:03:04 -04:00
owo
This commit is contained in:
parent
d2874c2e5f
commit
63dab6176e
100 changed files with 12438 additions and 0 deletions
16
core/InnerTube/CacheItem.cs
Normal file
16
core/InnerTube/CacheItem.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue