/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Middleware/Microsoft.AspNetCore.OutputCaching.StackExchangeRedis/test/RedisConnectionFixture.cs
26 строк
823 B
Marc Gravell
Caching: SE.Redis update and fix naming inconsistency (#54239)
29 фев 2024, 21:30
Не верифицирован
29 фев 2024, 21:30
7874b36
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using StackExchange.Redis; namespace Microsoft.AspNetCore.OutputCaching.StackExchangeRedis.Tests; public class RedisConnectionFixture : IDisposable { private readonly ConnectionMultiplexer _muxer; public RedisConnectionFixture() { var options = new RedisOutputCacheOptions { Configuration = "127.0.0.1:6379", // TODO: CI test config here }.GetConfiguredOptions(); _muxer = ConnectionMultiplexer.Connect(options); _muxer.AddLibraryNameSuffix("test"); } public IDatabase Database => _muxer.GetDatabase(); public IConnectionMultiplexer Connection => _muxer; public void Dispose() => _muxer.Dispose(); }