Skip to content

Commit 7c70d20

Browse files
committed
Version up
1 parent 8d5310a commit 7c70d20

File tree

19 files changed

+40
-29
lines changed

19 files changed

+40
-29
lines changed

Diff for: CacheManager.Msbuild.sln

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{A4153E09-B
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "common", "common", "{A8DA8B90-61EA-43AB-AD71-22C248780401}"
1111
ProjectSection(SolutionItems) = preProject
12-
.travis.yml = .travis.yml
12+
_disable_.travis.yml = _disable_.travis.yml
1313
appveyor.vs2013.yml = appveyor.vs2013.yml
1414
appveyor.yml = appveyor.yml
1515
common\CacheManager.ruleset = common\CacheManager.ruleset

Diff for: .travis.yml renamed to _disable_.travis.yml

File renamed without changes.

Diff for: appveyor.vs2013.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.9.2-beta-{build}
1+
version: 0.9.3-beta-{build}
22
os: Visual Studio 2015
33
clone_depth: 10
44
clone_folder: C:\projects\CacheManager\

Diff for: appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.9.2-beta-{build}
1+
version: 0.9.3-beta-{build}
22
os: Visual Studio 2015
33
clone_depth: 10
44
clone_folder: C:\projects\CacheManager\

Diff for: common/GlobalAssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
[assembly: AssemblyCopyright("Copyright © 2015 MichaConrad")]
88
[assembly: AssemblyDescription("CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.")]
99
[assembly: ComVisible(false)]
10-
[assembly: AssemblyVersion("0.9.2.0")]
11-
[assembly: AssemblyFileVersion("0.9.2.0")]
10+
[assembly: AssemblyVersion("0.9.3.0")]
11+
[assembly: AssemblyFileVersion("0.9.3.0")]

Diff for: global.json

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"sdk": {
3-
"version": "1.0.0-preview2-003121"
4-
},
52
"projects": [
63
"src",
74
"test"

Diff for: samples/CacheManager.Examples/Program.cs

+23-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Reflection;
32
using CacheManager.Core;
43
using Microsoft.Extensions.Logging;
54
#if NET451
@@ -53,12 +52,12 @@ private static void MostSimpleCacheManagerC()
5352

5453
private static void MostSimpleCacheManagerWithLogging()
5554
{
56-
var config = new ConfigurationBuilder()
57-
.WithMicrosoftLogging(l => l.AddConsole(LogLevel.Information))
58-
.WithSystemRuntimeCacheHandle()
59-
.Build();
55+
var config = new ConfigurationBuilder()
56+
.WithMicrosoftLogging(l => l.AddConsole(LogLevel.Information))
57+
.WithSystemRuntimeCacheHandle()
58+
.Build();
6059

61-
var cache = new BaseCacheManager<string>(config);
60+
var cache = new BaseCacheManager<string>(config);
6261
// or
6362
var cache2 = CacheFactory.FromConfiguration<string>(config);
6463
}
@@ -74,7 +73,7 @@ private static void EditExistingConfiguration()
7473
.WithMicrosoftLogging(f => f.AddConsole())
7574
.Build();
7675
}
77-
76+
7877
#endif
7978

8079
private static void LoggingSample()
@@ -99,6 +98,7 @@ private static void AppConfigLoadInstalledCacheCfg()
9998
var cache = CacheFactory.FromConfiguration<object>("myCache");
10099
cache.Add("key", "value");
101100
}
101+
102102
#endif
103103

104104
private static void EventsExample()
@@ -139,6 +139,7 @@ private static void RedisSample()
139139

140140
var result = cache.Get("test");
141141
}
142+
142143
#endif
143144

144145
private static void SimpleCustomBuildConfigurationUsingConfigBuilder()
@@ -244,8 +245,21 @@ private static void UpdateTest()
244245
Console.WriteLine("After AddOrUpdate: {0}", cache["test"]);
245246

246247
cache.Remove("test");
247-
var removeValue = cache.Update("test", v => "updated?");
248-
Console.WriteLine("Value after remove is null?: {0}", removeValue == null);
248+
try
249+
{
250+
var removeValue = cache.Update("test", v => "updated?");
251+
}
252+
catch
253+
{
254+
Console.WriteLine("Error as expected because item didn't exist.");
255+
}
256+
257+
// use try update to not deal with exceptions
258+
string removedValue;
259+
if (!cache.TryUpdate("test", v => v, out removedValue))
260+
{
261+
Console.WriteLine("Value after remove is null?: {0}", removedValue == null);
262+
}
249263
}
250264

251265
private static void UpdateCounterTest()

Diff for: src/CacheManager.Core/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.2-*",
2+
"version": "0.9.3-*",
33
"description": "CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features. The Core library contains all base interfaces and tools. You should install at least one other CacheManager package to get cache handle implementations.",
44
"packOptions": {
55
"licenseUrl": "https://github.com/MichaCo/CacheManager/blob/master/LICENSE",

Diff for: src/CacheManager.Couchbase/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.2-*",
2+
"version": "0.9.3-*",
33
"description": "CacheManager extension package to work with Couchbase as a distributed cache. CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.",
44
"packOptions": {
55
"licenseUrl": "https://github.com/MichaCo/CacheManager/blob/master/LICENSE",

Diff for: src/CacheManager.Memcached/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.2-*",
2+
"version": "0.9.3-*",
33
"description": "CacheManager extension package to work with Memcached as a distributed cache. CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features. This package contains the specific Memcached handles.",
44
"packOptions": {
55
"licenseUrl": "https://github.com/MichaCo/CacheManager/blob/master/LICENSE",

Diff for: src/CacheManager.Microsoft.Extensions.Caching.Memory/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.2-*",
2+
"version": "0.9.3-*",
33
"description": "CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features. This package contains the specific cache handle for Microsoft.Extensions.Caching.Memory.",
44
"packOptions": {
55
"licenseUrl": "https://github.com/MichaCo/CacheManager/blob/master/LICENSE",

Diff for: src/CacheManager.Microsoft.Extensions.Configuration/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.2-*",
2+
"version": "0.9.3-*",
33
"description": "CacheManager extension package to use Microsoft.Extensions.Configuration to configure the CacheManager instance. CacheManager is an open source caching abstraction layer for .NET written in C#. This is the ASP.NET Core configuration integration package.",
44
"packOptions": {
55
"licenseUrl": "https://github.com/MichaCo/CacheManager/blob/master/LICENSE",

Diff for: src/CacheManager.Microsoft.Extensions.Logging/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.2-*",
2+
"version": "0.9.3-*",
33
"description": "CacheManager extension package to work with Microsoft.Extensions.Logging as logging provider. CacheManager is an open source caching abstraction layer for .NET written in C#. The ASP.NET Core logging provides a bridge to the Microsoft.Extensions.Logging framework.",
44
"packOptions": {
55
"licenseUrl": "https://github.com/MichaCo/CacheManager/blob/master/LICENSE",

Diff for: src/CacheManager.Serialization.Json/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.2-*",
2+
"version": "0.9.3-*",
33
"description": "CacheManager extension package providing JSON serialization for distributed caches. CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features. The Core library contains a Newtonsoft.Json based serializer implementation which can be used instead of the default binary serializer.",
44
"packOptions": {
55
"licenseUrl": "https://github.com/MichaCo/CacheManager/blob/master/LICENSE",

Diff for: src/CacheManager.Serialization.ProtoBuf/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.2-*",
2+
"version": "0.9.3-*",
33
"description": "CacheManager extension package providing ProtoBuf serialization for distributed caches. CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features, the ProtoBuf serializer can be used in place of the default Binary Serializer",
44
"packOptions": {
55
"licenseUrl": "https://github.com/MichaCo/CacheManager/blob/master/LICENSE",

Diff for: src/CacheManager.StackExchange.Redis/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.2-*",
2+
"version": "0.9.3-*",
33
"description": "CacheManager extension package which adds support for Redis as a distributed cache layer. CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.",
44
"packOptions": {
55
"licenseUrl": "https://github.com/MichaCo/CacheManager/blob/master/LICENSE",

Diff for: src/CacheManager.SystemRuntimeCaching/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.2-*",
2+
"version": "0.9.3-*",
33
"description": "CacheManager extension package which adds System.Runtime.Caching.MemoryCache as an option for a local in-memory cache layer. CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.",
44
"packOptions": {
55
"licenseUrl": "https://github.com/MichaCo/CacheManager/blob/master/LICENSE",

Diff for: src/CacheManager.Web/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.2-*",
2+
"version": "0.9.3-*",
33
"description": "CacheManager extension package which uses System.Web.Caching and also comes with a custom OutputCache provider. CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.",
44
"packOptions": {
55
"licenseUrl": "https://github.com/MichaCo/CacheManager/blob/master/LICENSE",

Diff for: test/CacheManager.Config.Tests/project.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.9.2-*",
2+
"version": "1.0.0-*",
33
"description": "CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.",
44
"authors": [ "MichaConrad" ],
55
"dependencies": {

0 commit comments

Comments
 (0)