This commit is contained in:
sam 2024-08-16 17:04:24 +02:00
parent 7ea945b427
commit 99c1587e7b
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
12 changed files with 35 additions and 35 deletions

View file

@ -8,7 +8,7 @@ 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)