Skip to content

Commit

Permalink
Merge branch 'master' of github.com:raphaabreu/SimpleConcepts.Extensi…
Browse files Browse the repository at this point in the history
…ons.Caching
  • Loading branch information
raphaabreu committed Oct 9, 2020
2 parents 612006b + d8423fa commit ad63eb3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
push:
branches:
- "master"

paths-ignore:
- "**/README.md"

jobs:
pre-release:
runs-on: ubuntu-latest
Expand All @@ -31,8 +33,6 @@ jobs:
run: dotnet test --no-restore
- name: Pack with dotnet
run: dotnet pack -c Release -p:Version=${{ steps.gitversion.outputs.NuGetVersionV2 }} --no-restore -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output nuget-packages
- name: Push with dotnet
run: dotnet nuget push nuget-packages/*.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json
- name: Archive packages
uses: actions/upload-artifact@v2.1.4
with:
Expand All @@ -53,3 +53,5 @@ jobs:
LICENSE
nuget-packages/*.nupkg
nuget-packages/*.snupkg
- name: Push with dotnet
run: dotnet nuget push nuget-packages/*.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
run: dotnet test --no-restore
- name: Pack with dotnet
run: dotnet pack -c Release -p:Version=${{ steps.gitversion.outputs.NuGetVersionV2 }} --no-restore -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output nuget-packages
- name: Push with dotnet
run: dotnet nuget push nuget-packages/*.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json
- name: Archive packages
uses: actions/upload-artifact@v2.1.4
with:
Expand All @@ -52,3 +50,5 @@ jobs:
LICENSE
nuget-packages/*.nupkg
nuget-packages/*.snupkg
- name: Push with dotnet
run: dotnet nuget push nuget-packages/*.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Nuget](https://img.shields.io/nuget/v/SimpleConcepts.Extensions.Caching)](https://www.nuget.org/packages/SimpleConcepts.Extensions.Caching/)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/raphaabreu/SimpleConcepts.Extensions.Caching/master/LICENSE)

# SimpleConcepts.Extensions.Caching

This package provides several extensions that make working with `IDistributedCache` easier, including Json object serialization, get with fallback, key space partitioning and logging. In addition to these extensions there is also a strongly typed `ISimpleCache<TKey, TValue>` interface that provides a dependency injection friendly and fully customizable wrapper for `IDistributedCache.`
Expand Down Expand Up @@ -163,4 +166,4 @@ private async Task<WeatherForecast> FetchSingleForecastAsync(DateTime date, Canc
// Logic for fetching key missing from cache
// ...
}
```
```

0 comments on commit ad63eb3

Please sign in to comment.