PeakUp.Cache.Redis 1.0.0.2

Description

Install-Package PeakUp.Cache.Redis -Version 1.0.0.2
dotnet add package PeakUp.Cache.Redis --version 1.0.0.2
<PackageReference Include="PeakUp.Cache.Redis" Version="1.0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PeakUp.Cache.Redis --version 1.0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

List<Product> productList = new List<Product> {
new Product
{
Id = 0,
Name = "Almanya",
Created = DateTimeOffset.Now
},
new Product
{
Id = 1,
Name = "Germany",
Created = DateTimeOffset.Now
},
new Product
{
Id = 2,
Name = "Marilyn",
Created = DateTimeOffset.Now
}
};

        CacheServiceStack cache = new CacheServiceStack("any-producter", "berlin");

        cache.CollectionName = "product";

        cache.SetRows("Id", productList);

        var beforeUpdate = cache.Get<Product>().OrderBy(x => x.Id);

        var singleRow = cache.GetSingleRow<Product>("Id", 0.ToString());

        cache.SetSingleRow("Id", new Product { Id = 0, Name = "Opposition", Created = DateTimeOffset.Now });

        var afterUpdate = cache.Get<Product>().OrderBy(x => x.Id);

        var removeRowResult = cache.RemoveRow("Id", 0.ToString());

        var afterRowRemove = cache.Get<Product>().OrderBy(x => x.Id);

        var removeResult = cache.Remove();

        var afteFullRemove = cache.Get<Product>().OrderBy(x => x.Id);

List<Product> productList = new List<Product> {
new Product
{
Id = 0,
Name = "Almanya",
Created = DateTimeOffset.Now
},
new Product
{
Id = 1,
Name = "Germany",
Created = DateTimeOffset.Now
},
new Product
{
Id = 2,
Name = "Marilyn",
Created = DateTimeOffset.Now
}
};

        CacheServiceStack cache = new CacheServiceStack("any-producter", "berlin");

        cache.CollectionName = "product";

        cache.SetRows("Id", productList);

        var beforeUpdate = cache.Get<Product>().OrderBy(x => x.Id);

        var singleRow = cache.GetSingleRow<Product>("Id", 0.ToString());

        cache.SetSingleRow("Id", new Product { Id = 0, Name = "Opposition", Created = DateTimeOffset.Now });

        var afterUpdate = cache.Get<Product>().OrderBy(x => x.Id);

        var removeRowResult = cache.RemoveRow("Id", 0.ToString());

        var afterRowRemove = cache.Get<Product>().OrderBy(x => x.Id);

        var removeResult = cache.Remove();

        var afteFullRemove = cache.Get<Product>().OrderBy(x => x.Id);

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0.2 123 11/28/2018
1.0.0.1 108 11/22/2018
1.0.0 97 11/22/2018