Merge branch 'master' into dev
大石头 编写于 2024-10-04 14:02:10
NewLife.Redis
using System;
using NewLife.Caching.Services;
using NewLife.Model;
using Xunit;

namespace XUnitTest.Services;

public class RedisCacheProviderTests
{
    [Fact]
    public void Ctor()
    {
        var sp = ObjectContainer.Provider;

        var provider = new RedisCacheProvider(sp);
        Assert.NotNull(provider.Cache);
        Assert.NotNull(provider.InnerCache);
        Assert.Null(provider.RedisQueue);

        var q = provider.GetQueue<Object>("test");
        Assert.NotNull(q);
    }
}