Пример #1
0
    public void TestString()
    {
        var key    = nameof(TestString).ToLower();
        var value  = DateTime.Now.Ticks;
        var result = _redisProvider.StringSet(key, value.ToString(), TimeSpan.FromSeconds(10));

        Assert.True(result);
        var actual = _redisProvider.StringGet(key);

        Assert.Equal(value.ToString(), actual);
    }