using System.Net; using StackExchange.Redis; namespace Nop.Services.Caching; /// /// Represents Redis connection wrapper /// public partial interface IRedisConnectionWrapper { /// /// Obtain an interactive connection to a database inside Redis /// /// Redis cache database Task GetDatabaseAsync(); /// /// Obtain an interactive connection to a database inside Redis /// /// Redis cache database IDatabase GetDatabase(); /// /// Obtain a configuration API for an individual server /// /// The network endpoint /// Redis server Task GetServerAsync(EndPoint endPoint); /// /// Gets all endpoints defined on the server /// /// Array of endpoints Task GetEndPointsAsync(); /// /// Gets a subscriber for the server /// /// Array of endpoints Task GetSubscriberAsync(); /// /// Gets a subscriber for the server /// /// Array of endpoints ISubscriber GetSubscriber(); /// /// Delete all the keys of the database /// Task FlushDatabaseAsync(); /// /// The Redis instance name /// string Instance { get; } }