Table of Contents

Class Cacheable<TEntity>

Namespace
Fluxer.Net
Assembly
Fluxer.Net.dll
public class Cacheable<TEntity> where TEntity : ISnowflake

Type Parameters

TEntity
Inheritance
object
Cacheable<TEntity>

Constructors

Cacheable(ulong, TEntity, Func<Task<TEntity>>)

public Cacheable(ulong id, TEntity value, Func<Task<TEntity>> downloadFunc)

Parameters

id ulong
value TEntity
downloadFunc Func<Task<TEntity>>

Properties

Id

public ulong Id { get; }

Property Value

ulong

Value

public TEntity? Value { get; }

Property Value

TEntity

Methods

GetOrDownloadAsync()

public Task<TEntity?> GetOrDownloadAsync()

Returns

Task<TEntity>