mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-11-15 08:46:26 +01:00
Delete unverified accounts
Misc cleanup
This commit is contained in:
@@ -35,6 +35,11 @@ public class RedisCache : ICache
|
||||
await _db.SetAddAsync(key, value);
|
||||
}
|
||||
|
||||
public async ValueTask RemoveFromList(string key, string value)
|
||||
{
|
||||
await _db.SetRemoveAsync(key, value);
|
||||
}
|
||||
|
||||
public async ValueTask Delete(string key)
|
||||
{
|
||||
await _db.KeyDeleteAsync(key);
|
||||
|
||||
@@ -33,6 +33,12 @@ public class RedisStatsController : IStatsReporter, IStatsCollector
|
||||
return new((ulong)ingress.Result, (ulong)egress.Result);
|
||||
}
|
||||
|
||||
public async ValueTask Delete(Guid id)
|
||||
{
|
||||
await _redis.KeyDeleteAsync(formatEgressKey(id));
|
||||
await _redis.KeyDeleteAsync(formatIngressKey(id));
|
||||
}
|
||||
|
||||
public async ValueTask TrackIngress(Guid id, ulong amount)
|
||||
{
|
||||
await Task.WhenAll(
|
||||
|
||||
Reference in New Issue
Block a user