-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from dotnetcore/dev
Upgrading dependencies And Release A New Version.
- Loading branch information
Showing
9 changed files
with
145 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,40 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<EasyCachingCorePackageNotes> | ||
1. Support Value Type. | ||
1. Support .NET Core 2.1 | ||
</EasyCachingCorePackageNotes> | ||
<EasyCachingMemcachedPackageNotes> | ||
1. Support Value Type. | ||
1. Support .NET Core 2.1 | ||
</EasyCachingMemcachedPackageNotes> | ||
<EasyCachingRedisPackageNotes> | ||
1. Support Value Type. | ||
2. Support Connection strings. | ||
1. Support .NET Core 2.1 | ||
</EasyCachingRedisPackageNotes> | ||
<EasyCachingSQLitePackageNotes> | ||
1. Support Value Type. | ||
1. Support .NET Core 2.1 | ||
</EasyCachingSQLitePackageNotes> | ||
<EasyCachingInMemoryPackageNotes> | ||
1. Support Value Type. | ||
1. Support .NET Core 2.1 | ||
</EasyCachingInMemoryPackageNotes> | ||
<EasyCachingHybridPackageNotes> | ||
1. Support Value Type. | ||
1. Support .NET Core 2.1 | ||
</EasyCachingHybridPackageNotes> | ||
<EasyCachingAspectCorePackageNotes> | ||
Add some extension methods. | ||
1. Support .NET Core 2.1 | ||
</EasyCachingAspectCorePackageNotes> | ||
<EasyCachingCastlePackageNotes> | ||
Add some extension methods. | ||
1. Support .NET Core 2.1 | ||
</EasyCachingCastlePackageNotes> | ||
<EasyCachingResponseCachingPackageNotes> | ||
Use pattern matching to simplify something. | ||
1. Support .NET Core 2.1 | ||
</EasyCachingResponseCachingPackageNotes> | ||
<EasyCachingJsonPackageNotes> | ||
Init. | ||
1. Support .NET Core 2.1 | ||
</EasyCachingJsonPackageNotes> | ||
<EasyCachingMessagePackPackageNotes> | ||
Fix bug of AddDefaultMessagePackSerializer. | ||
1. Support .NET Core 2.1 | ||
</EasyCachingMessagePackPackageNotes> | ||
<EasyCachingProtobufPackageNotes> | ||
Init. | ||
1. Support .NET Core 2.1 | ||
</EasyCachingProtobufPackageNotes> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<EasyCachingCorePackageVersion>0.2.3</EasyCachingCorePackageVersion> | ||
<EasyCachingMemcachedPackageVersion>0.2.3</EasyCachingMemcachedPackageVersion> | ||
<EasyCachingRedisPackageVersion>0.2.3</EasyCachingRedisPackageVersion> | ||
<EasyCachingSQLitePackageVersion>0.2.3</EasyCachingSQLitePackageVersion> | ||
<EasyCachingInMemoryPackageVersion>0.2.3</EasyCachingInMemoryPackageVersion> | ||
<EasyCachingHybridPackageVersion>0.2.3</EasyCachingHybridPackageVersion> | ||
<EasyCachingAspectCorePackageVersion>0.2.0</EasyCachingAspectCorePackageVersion> | ||
<EasyCachingCastlePackageVersion>0.2.0</EasyCachingCastlePackageVersion> | ||
<EasyCachingResponseCachingPackageVersion>0.1.1</EasyCachingResponseCachingPackageVersion> | ||
<EasyCachingJsonPackageVersion>0.1.0</EasyCachingJsonPackageVersion> | ||
<EasyCachingMessagePackPackageVersion>0.1.2</EasyCachingMessagePackPackageVersion> | ||
<EasyCachingProtobufPackageVersion>0.1.2</EasyCachingProtobufPackageVersion> | ||
<EasyCachingCorePackageVersion>0.3.0</EasyCachingCorePackageVersion> | ||
<EasyCachingMemcachedPackageVersion>0.3.0</EasyCachingMemcachedPackageVersion> | ||
<EasyCachingRedisPackageVersion>0.3.0</EasyCachingRedisPackageVersion> | ||
<EasyCachingSQLitePackageVersion>0.3.0</EasyCachingSQLitePackageVersion> | ||
<EasyCachingInMemoryPackageVersion>0.3.0</EasyCachingInMemoryPackageVersion> | ||
<EasyCachingHybridPackageVersion>0.3.0</EasyCachingHybridPackageVersion> | ||
<EasyCachingAspectCorePackageVersion>0.3.0</EasyCachingAspectCorePackageVersion> | ||
<EasyCachingCastlePackageVersion>0.3.0</EasyCachingCastlePackageVersion> | ||
<EasyCachingResponseCachingPackageVersion>0.3.0</EasyCachingResponseCachingPackageVersion> | ||
<EasyCachingJsonPackageVersion>0.3.0</EasyCachingJsonPackageVersion> | ||
<EasyCachingMessagePackPackageVersion>0.3.0</EasyCachingMessagePackPackageVersion> | ||
<EasyCachingProtobufPackageVersion>0.3.0</EasyCachingProtobufPackageVersion> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
|
||
// namespace EasyCaching.HybridCache | ||
// { | ||
// using EasyCaching.Core; | ||
// using EasyCaching.Core.Internal; | ||
// using System; | ||
// using System.Collections.Generic; | ||
// using System.Linq; | ||
// using System.Threading.Tasks; | ||
|
||
// public interface IHybridCachingNewProvider | ||
// { | ||
// void Set<T>(string cacheKey, T cacheValue, TimeSpan expiration); | ||
|
||
// CacheValue<T> Get<T>(string cacheKey); | ||
|
||
// void Remove(string cacheKey); | ||
// } | ||
|
||
// public class HybridCacheNewProvider : IHybridCachingNewProvider | ||
// { | ||
// private readonly IEasyCachingProvider _local; | ||
// private readonly IEasyCachingProvider _remote; | ||
// private readonly IEasyCachingBus _bus; | ||
|
||
// public HybridCacheNewProvider(IEnumerable<IEasyCachingProvider> providers, IEasyCachingBus bus) | ||
// { | ||
// if (providers == null || !providers.Any()) | ||
// { | ||
// throw new ArgumentNullException(nameof(providers)); | ||
// } | ||
|
||
// if (providers.Count() > 2) | ||
// { | ||
// throw new ArgumentOutOfRangeException(nameof(providers)); | ||
// } | ||
|
||
// if(providers.Count(x=>x.IsDistributedCache)>1) | ||
// { | ||
// throw new ArgumentOutOfRangeException(nameof(providers)); | ||
// } | ||
|
||
// if(providers.Count(x=>!x.IsDistributedCache)>1) | ||
// { | ||
// throw new ArgumentOutOfRangeException(nameof(providers)); | ||
// } | ||
|
||
// this._local = providers.First(x=>!x.IsDistributedCache); | ||
// this._remote = providers.First(x=>x.IsDistributedCache); | ||
// this._bus = bus; | ||
// this._bus.Subscribe("channel"); | ||
// } | ||
|
||
// public CacheValue<T> Get<T>(string cacheKey) | ||
// { | ||
// var obj = _local.Get<T>(cacheKey); | ||
|
||
// if(obj.HasValue) return obj; | ||
|
||
// obj = _remote.Get<T>(cacheKey); | ||
|
||
// return obj.HasValue | ||
// ? obj | ||
// : CacheValue<T>.NoValue; | ||
// } | ||
|
||
// public void Remove(string cacheKey) | ||
// { | ||
// _remote.Remove(cacheKey); | ||
// _bus.Publish("channel",new EasyCachingMessage | ||
// { | ||
// CacheKey = cacheKey, | ||
// NotifyType = NotifyType.Delete | ||
// }); | ||
// } | ||
|
||
// public void Set<T>(string cacheKey, T cacheValue, TimeSpan expiration) | ||
// { | ||
// _remote.Set(cacheKey,cacheValue,expiration); | ||
// _bus.Publish("channel",new EasyCachingMessage | ||
// { | ||
// CacheKey = cacheKey, | ||
// CacheValue = cacheValue, | ||
// Expiration = expiration, | ||
// NotifyType = NotifyType.Add | ||
// }); | ||
// } | ||
// } | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters