pivotal-cf/spring-cloud-dotnet-caching

Name: spring-cloud-dotnet-caching

Owner: Pivotal Cloud Foundry

Description: null

Created: 2016-06-03 14:32:58.0

Updated: 2016-06-03 15:45:55.0

Pushed: 2016-10-07 15:32:42.0

Homepage: null

Size: 27

Language: C#

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

.NET Cache Providers

This repo contains two custom cache providers. The Pivotal.Extensions.Caching.Redis provider and and the Pivotal.Extensions.Caching.Gemfire provider. Each provider enables using them as a distributed cache in a .NET/ASP.NET application.

For more details on the Microsoft caching extensions, see here.

Windows Master (Stable): AppVeyor Master

Windows Dev (Less Stable): AppVeyor Dev

.NET Runtime & Framework Support

Like ASP.NET Core, the providers are intended to support both .NET 4.5.1+ and .NET Core (CoreCLR/CoreFX) runtimes. The providers are built and unit tested on Windows, Linux and OSX.

While the primary usage of the providers is intended to be with ASP.NET Core applications, they should also work fine with UWP, Console and ASP.NET 4.x apps.

Currently all of the code and samples have been tested on .NET Core 1.0.0-RC2/SDK Preview 1, .NET 4.5.1, and on ASP.NET Core 1.0.0-RC2-final.

Note: Currently both only are functional on Windows/.NET4.5.1. In the near future, they will be supported on all platforms.

Usage

See the Readme for each provider for more details on how to make use of it in an application.

Nuget Feeds

All new configuration provider development is done on the dev branch. More stable versions of the providers can be found on the master branch. The latest prebuilt packages from each branch can be found on one of two MyGet feeds. Released version can be found on nuget.org.

Development feed (Less Stable) - https://www.myget.org/gallery/steeltoedev

Master feed (Stable) - https://www.myget.org/gallery/steeltoemaster

Release or Release Candidate feed - https://www.nuget.org/.

Building Packages & Running Tests - Windows

To build the packages on windows:

  1. git clone …
  2. cd
  3. Install .NET Core SDK
  4. dotnet restore src
  5. cd src (e.g. cd src\Pivotal.Extensions.Caching.Redis)
  6. dotnet pack –configuration

The resulting artifacts can be found in the bin folder under the corresponding project. (e.g. src\Pivotal.Extensions.Caching.Redis\bin

To run the unit tests:

  1. git clone …
  2. cd
  3. Install .NET Core SDK
  4. dotnet restore test
  5. cd test (e.g. cd test\Pivotal.Extensions.Caching.Redis.Test)
  6. dotnet test

Building Packages & Running Tests - Linux/OSX

NOTE: Currently these packages will not run on Linux/OSX. Support is coming!

To build the packages on Linux/OSX:

  1. git clone …
  2. cd
  3. Install .NET Core SDK
  4. dotnet restore src
  5. cd src/ (e.g.. cd src/Pivotal.Extensions.Caching.Redis)
  6. dotnet pack –configuration

The resulting artifacts can be found in the bin folder under the corresponding project. (e.g. src/Pivotal.Extensions.Caching.Redis/bin

To run the unit tests:

  1. git clone …
  2. cd
  3. Install .NET Core SDK
  4. dotnet restore test
  5. cd test (e.g. cd test/Pivotal.Extensions.Caching.Redis.Test)
  6. dotnet test –framework netcoreapp1.0

Sample Applications

See the Samples repo for examples of how to use these packages.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.