* Added missing summaries

This commit is contained in:
2026-03-09 04:38:03 +04:00
parent 0e445dd586
commit 5f9c640930
12 changed files with 967 additions and 7 deletions
@@ -4,6 +4,10 @@ using Telegrator.Core.States;
namespace Telegrator.States;
/// <summary>
/// Provides a Redis-based implementation of the <see cref="IStateStorage"/> interface.
/// Serializes state objects to JSON format before storing them in the Redis database.
/// </summary>
public class RedisStateStorage(IConnectionMultiplexer redis) : IStateStorage
{
private readonly IDatabase _db = redis.GetDatabase();
@@ -30,6 +34,6 @@ public class RedisStateStorage(IConnectionMultiplexer redis) : IStateStorage
/// <inheritdoc/>
public async Task DeleteAsync(string key, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
await _db.KeyDeleteAsync(key);
}
}