Browse Source

Fixing bad merge

Former-commit-id: a4c4d84856e989f4400012db0ac759b70cdb3b3e
pull/17/head
James South 12 years ago
parent
commit
e76db38c93
  1. 14
      src/ImageProcessor.Web/NET45/Caching/MemCache.cs
  2. 7
      src/ImageProcessor.Web/NET45/Properties/AssemblyInfo.cs

14
src/ImageProcessor.Web/NET45/Caching/MemCache.cs

@ -131,7 +131,7 @@ namespace ImageProcessor.Web.Caching
/// True if the update try succeeds, or false if there is an already an entry /// True if the update try succeeds, or false if there is an already an entry
/// in the cache with the same key as key. /// in the cache with the same key as key.
/// </returns> /// </returns>
public static bool UpdateItem(string key, object value, CacheItemPolicy policy = null, string regionName = null) public static bool UpdateItem(string key, object value, CacheItemPolicy policy = null, string regionName = null)
{ {
bool isUpDated = true; bool isUpDated = true;
@ -181,12 +181,8 @@ namespace ImageProcessor.Web.Caching
if (isRemoved) if (isRemoved)
{ {
<<<<<<< HEAD
CacheItems.Keys.Remove(key);
=======
string removedValue; string removedValue;
CacheItems.TryRemove(key, out removedValue); CacheItems.TryRemove(key, out removedValue);
>>>>>>> origin/dev
} }
} }
@ -233,12 +229,8 @@ namespace ImageProcessor.Web.Caching
// Loop through and clear out the dictionary of cache keys. // Loop through and clear out the dictionary of cache keys.
foreach (KeyValuePair<string, string> cacheItem in tempDictionary) foreach (KeyValuePair<string, string> cacheItem in tempDictionary)
{ {
<<<<<<< HEAD
CacheItems.Keys.Remove(cacheItem.Key);
=======
string removedValue; string removedValue;
CacheItems.TryRemove(cacheItem.Key, out removedValue); CacheItems.TryRemove(cacheItem.Key, out removedValue);
>>>>>>> origin/dev
} }
} }
} }
@ -247,8 +239,4 @@ namespace ImageProcessor.Web.Caching
} }
#endregion #endregion
} }
<<<<<<< HEAD
} }
=======
}
>>>>>>> origin/dev

7
src/ImageProcessor.Web/NET45/Properties/AssemblyInfo.cs

@ -25,17 +25,12 @@ using System.Runtime.InteropServices;
// Version information for an assembly consists of the following four values: // Version information for an assembly consists of the following four values:
// //
// Major Version // Major Version
// Minor Version // Minor Version
// Build Number // Build Number
// Revision // Revision
// //
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
<<<<<<< HEAD
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
=======
[assembly: AssemblyVersion("3.0.0.1")] [assembly: AssemblyVersion("3.0.0.1")]
[assembly: AssemblyFileVersion("3.0.0.1")] [assembly: AssemblyFileVersion("3.0.0.1")]
>>>>>>> origin/dev

Loading…
Cancel
Save