add metrics (without reporting, for now)
This commit is contained in:
parent
5585ffd6ea
commit
14b132e466
9 changed files with 183 additions and 9 deletions
|
|
@ -8,6 +8,8 @@ namespace Catalogger.Backend.Cache;
|
|||
public class UserCacheService(IDiscordRestUserAPI userApi)
|
||||
{
|
||||
private readonly ConcurrentDictionary<Snowflake, IUser> _cache = new();
|
||||
|
||||
public int Size => _cache.Count;
|
||||
|
||||
public async Task<IUser?> GetUserAsync(Snowflake userId)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue