diff --git a/samples/AspnetCore.WebApp/Startup.cs b/samples/AspnetCore.WebApp/Startup.cs index 1d5c6f8f..58cf76bb 100644 --- a/samples/AspnetCore.WebApp/Startup.cs +++ b/samples/AspnetCore.WebApp/Startup.cs @@ -49,13 +49,13 @@ public void ConfigureServices(IServiceCollection services) // TODO: still not 100% happy with the logging part services.AddCacheManagerConfiguration(Configuration, cfg => cfg.WithMicrosoftLogging(services)); - // uses a refined configurastion (this will not log, as we added the MS Logger only to the configuration above + // uses a refined configuration (this will not log, as we added the MS Logger only to the configuration above services.AddCacheManager(Configuration, configure: builder => builder.WithJsonSerializer()); // creates a completely new configuration for this instance (also not logging) services.AddCacheManager(inline => inline.WithDictionaryHandle()); - // any other type will be this. Configurastion used will be the one defined by AddCacheManagerConfiguration earlier. + // any other type will be this. Configuration used will be the one defined by AddCacheManagerConfiguration earlier. services.AddCacheManager(); } diff --git a/src/CacheManager.Core/BaseCacheManager.Update.cs b/src/CacheManager.Core/BaseCacheManager.Update.cs index 5c57ee00..12f65239 100644 --- a/src/CacheManager.Core/BaseCacheManager.Update.cs +++ b/src/CacheManager.Core/BaseCacheManager.Update.cs @@ -198,7 +198,7 @@ private bool UpdateInternal( } // lowest level - // todo: maybe check for only run on the backplate if configured (could potentially be not the last one). + // todo: maybe check for only run on the backplane if configured (could potentially be not the last one). var handleIndex = handles.Length - 1; var handle = handles[handleIndex]; diff --git a/src/CacheManager.Core/BaseCacheManager.cs b/src/CacheManager.Core/BaseCacheManager.cs index 353f11bc..1dce983b 100644 --- a/src/CacheManager.Core/BaseCacheManager.cs +++ b/src/CacheManager.Core/BaseCacheManager.cs @@ -86,7 +86,7 @@ private BaseCacheManager(string name, ICacheManagerConfiguration configuration) handle.OnCacheSpecificRemove += (sender, args) => { // added sync for using backplane with in-memory caches on cache specific removal - // but commented for now, this is not really needed if all instances use the same expiration etc, would just cause dublicated events + // but commented for now, this is not really needed if all instances use the same expiration etc, would just cause duplicated events ////if (_cacheBackplane != null && handle.Configuration.IsBackplaneSource && !handle.IsDistributedCache) ////{ //// if (string.IsNullOrEmpty(args.Region)) @@ -111,7 +111,7 @@ private BaseCacheManager(string name, ICacheManagerConfiguration configuration) EvictFromHandlesAbove(args.Key, args.Region, handleIndex); } - // moving down below cleanup, optherwise the item could still be in memory + // moving down below cleanup, otherwise the item could still be in memory TriggerOnRemoveByHandle(args.Key, args.Region, args.Reason, handleIndex + 1, args.Value); }; @@ -719,16 +719,16 @@ private void RegisterCacheBackplane(CacheBackplane backplane) if (_cacheHandles.Any(p => p.Configuration.IsBackplaneSource)) { // added includeSource param to get the handles which need to be synced. - // in case the backplane source is non-distributed (in-memory), only remotly triggered remove and clear should also - // trigger a sync locally. For distribtued caches, we expect that the distributed cache is already the source and in sync - // as that's the layer which triggered the event. In this case, only other in-memory handles above the distribtued, would be synced. - var handles = new Func[]>((includSource) => + // in case the backplane source is non-distributed (in-memory), only remotely triggered remove and clear should also + // trigger a sync locally. For distributed caches, we expect that the distributed cache is already the source and in sync + // as that's the layer which triggered the event. In this case, only other in-memory handles above the distributed, would be synced. + var handles = new Func[]>((includeSource) => { var handleList = new List>(); foreach (var handle in _cacheHandles) { if (!handle.Configuration.IsBackplaneSource || - (includSource && handle.Configuration.IsBackplaneSource && !handle.IsDistributedCache)) + (includeSource && handle.Configuration.IsBackplaneSource && !handle.IsDistributedCache)) { handleList.Add(handle); } diff --git a/src/CacheManager.Core/ExpirationMode.cs b/src/CacheManager.Core/ExpirationMode.cs index c7b46146..e05c2ca9 100644 --- a/src/CacheManager.Core/ExpirationMode.cs +++ b/src/CacheManager.Core/ExpirationMode.cs @@ -7,7 +7,7 @@ public enum ExpirationMode { /// - /// Default value for the expircation mode enum. + /// Default value for the expiration mode enum. /// CacheManager will default to None. The Default entry in the enum is used as separation from the other values /// and to make it possible to explicitly set the expiration to None. /// @@ -28,4 +28,4 @@ public enum ExpirationMode /// Absolute = 3 } -} \ No newline at end of file +} diff --git a/src/CacheManager.Core/ICacheManagerConfiguration.cs b/src/CacheManager.Core/ICacheManagerConfiguration.cs index 97573ce7..f6cf14d8 100644 --- a/src/CacheManager.Core/ICacheManagerConfiguration.cs +++ b/src/CacheManager.Core/ICacheManagerConfiguration.cs @@ -4,7 +4,7 @@ namespace CacheManager.Core { /// - /// The writable configuration contract used primarrily internal only + /// The writable configuration contract used primarily internal only /// public interface ICacheManagerConfiguration : IReadOnlyCacheManagerConfiguration { @@ -119,4 +119,4 @@ public interface IReadOnlyCacheManagerConfiguration /// CacheUpdateMode UpdateMode { get; } } -} \ No newline at end of file +} diff --git a/src/CacheManager.Core/Internal/BackplaneMessage.cs b/src/CacheManager.Core/Internal/BackplaneMessage.cs index 936c8559..af5c3a86 100644 --- a/src/CacheManager.Core/Internal/BackplaneMessage.cs +++ b/src/CacheManager.Core/Internal/BackplaneMessage.cs @@ -529,7 +529,7 @@ public byte[] ReadBytes(int length) throw new IndexOutOfRangeException("Cannot read bytes, no additional bytes available."); } - // fix: length check before aloc + // fix: length check before alloc var result = new byte[length]; Buffer.BlockCopy(_data, pos - length, result, 0, length); return result; @@ -553,4 +553,4 @@ public string ReadString() } } } -} \ No newline at end of file +} diff --git a/src/CacheManager.Core/Internal/BaseCache.cs b/src/CacheManager.Core/Internal/BaseCache.cs index afee1e4e..efb59abc 100644 --- a/src/CacheManager.Core/Internal/BaseCache.cs +++ b/src/CacheManager.Core/Internal/BaseCache.cs @@ -495,7 +495,7 @@ protected void CheckDisposed() /// /// The type. /// The value. - /// The casted value. + /// The cast value. protected static TOut GetCasted(object value) { if (value == null) @@ -514,4 +514,4 @@ protected static TOut GetCasted(object value) } } } -} \ No newline at end of file +} diff --git a/src/CacheManager.Core/Internal/CacheEventArgs.cs b/src/CacheManager.Core/Internal/CacheEventArgs.cs index 73756ada..f67e9153 100644 --- a/src/CacheManager.Core/Internal/CacheEventArgs.cs +++ b/src/CacheManager.Core/Internal/CacheEventArgs.cs @@ -132,7 +132,7 @@ public CacheActionEventArgs(string key, string region) /// /// The key. /// The region. - /// The origin the event ocured. If remote, the event got triggered by the backplane and was not actually excecuted locally. + /// The origin the event occured. If remote, the event got triggered by the backplane and was not actually executed locally. /// If key is null. public CacheActionEventArgs(string key, string region, CacheActionEventArgOrigin origin) : this(key, region) @@ -153,7 +153,7 @@ public CacheActionEventArgs(string key, string region, CacheActionEventArgOrigin public string Region { get; } /// - /// Gets the event origin indicating if the event was triggered by a local action or remotly, through the backplane. + /// Gets the event origin indicating if the event was triggered by a local action or remotely, through the backplane. /// public CacheActionEventArgOrigin Origin { get; } = CacheActionEventArgOrigin.Local; @@ -172,14 +172,14 @@ public sealed class CacheClearEventArgs : EventArgs /// /// Initializes a new instance of the class. /// - /// The origin the event ocured. If remote, the event got triggered by the backplane and was not actually excecuted locally. + /// The origin the event occured. If remote, the event got triggered by the backplane and was not actually executed locally. public CacheClearEventArgs(CacheActionEventArgOrigin origin = CacheActionEventArgOrigin.Local) { Origin = origin; } /// - /// Gets the event origin indicating if the event was triggered by a local action or remotly, through the backplane. + /// Gets the event origin indicating if the event was triggered by a local action or remotely, through the backplane. /// public CacheActionEventArgOrigin Origin { get; } @@ -199,7 +199,7 @@ public sealed class CacheClearRegionEventArgs : EventArgs /// Initializes a new instance of the class. /// /// The region. - /// The origin the event ocured. If remote, the event got triggered by the backplane and was not actually excecuted locally. + /// The origin the event occured. If remote, the event got triggered by the backplane and was not actually excecuted locally. /// If region is null. public CacheClearRegionEventArgs(string region, CacheActionEventArgOrigin origin = CacheActionEventArgOrigin.Local) { @@ -216,7 +216,7 @@ public CacheClearRegionEventArgs(string region, CacheActionEventArgOrigin origin public string Region { get; } /// - /// Gets the event origin indicating if the event was triggered by a local action or remotly, through the backplane. + /// Gets the event origin indicating if the event was triggered by a local action or remotely, through the backplane. /// public CacheActionEventArgOrigin Origin { get; } @@ -226,4 +226,4 @@ public override string ToString() return $"CacheClearRegionEventArgs {Region} - {Origin}"; } } -} \ No newline at end of file +} diff --git a/src/CacheManager.Core/Internal/SerializerCacheItem.cs b/src/CacheManager.Core/Internal/SerializerCacheItem.cs index 79cbe78e..622530d0 100644 --- a/src/CacheManager.Core/Internal/SerializerCacheItem.cs +++ b/src/CacheManager.Core/Internal/SerializerCacheItem.cs @@ -13,7 +13,7 @@ public interface ICacheItemConverter { /// /// Converts the current instance to a . - /// The returned item must return the orignial created and last accessed date! + /// The returned item must return the original created and last accessed date! /// /// The type. /// The cache item. @@ -73,7 +73,7 @@ public SerializerCacheItem(ICacheItemProperties properties, object value) /// /// Gets or sets the expiration timeout in milliseconds. - /// Can be coverted from and to . + /// Can be converted from and to . /// [DataMember] public abstract double ExpirationTimeout { get; set; } diff --git a/src/CacheManager.Couchbase/CouchbaseConfigurationManager.cs b/src/CacheManager.Couchbase/CouchbaseConfigurationManager.cs index 71e227ee..e4fa093e 100644 --- a/src/CacheManager.Couchbase/CouchbaseConfigurationManager.cs +++ b/src/CacheManager.Couchbase/CouchbaseConfigurationManager.cs @@ -19,7 +19,7 @@ namespace CacheManager.Couchbase /// Manages configurations for the couchbase cache handle. /// /// As of version 1.0.2, changed the management of s as those instances are already - /// managed by the of the couchbase client libraray. No need to have additional collections of stuff in here. + /// managed by the of the couchbase client library. No need to have additional collections of stuff in here. /// /// /// We keep track of added configurations via @@ -205,4 +205,4 @@ private static IBucket GetBucket(string configurationKey, string bucketName, str return string.IsNullOrEmpty(bucketPassword) ? cluster.OpenBucket(bucketName) : cluster.OpenBucket(bucketName, bucketPassword); } } -} \ No newline at end of file +} diff --git a/src/CacheManager.Memcached/MemcachedCacheHandle.cs b/src/CacheManager.Memcached/MemcachedCacheHandle.cs index fbaaa901..51bc2b3b 100644 --- a/src/CacheManager.Memcached/MemcachedCacheHandle.cs +++ b/src/CacheManager.Memcached/MemcachedCacheHandle.cs @@ -393,7 +393,7 @@ protected override bool RemoveInternal(string key, string region) /// /// The mode. /// The item. - /// Flag indicating if the operation should be retried. Returnd succssess code will be false anyways. + /// Flag indicating if the operation should be retried. Returned success code will be false anyways. /// The result. protected virtual IStoreOperationResult Store(StoreMode mode, CacheItem item, out bool shouldRetry) { @@ -767,4 +767,4 @@ protected override ArraySegment SerializeObject(object value) } } } -} \ No newline at end of file +} diff --git a/src/CacheManager.Microsoft.Extensions.Logging/MicrosoftLoggingBuilderExtensions.cs b/src/CacheManager.Microsoft.Extensions.Logging/MicrosoftLoggingBuilderExtensions.cs index 46c76061..ec8517ed 100644 --- a/src/CacheManager.Microsoft.Extensions.Logging/MicrosoftLoggingBuilderExtensions.cs +++ b/src/CacheManager.Microsoft.Extensions.Logging/MicrosoftLoggingBuilderExtensions.cs @@ -16,7 +16,7 @@ public static class MicrosoftLoggingBuilderExtensions /// Enables logging for the cache manager instance. /// Using this extension will create a NEW instance of Microsoft.Extensions.Logging.ILoggerFactory. /// - /// If you use the standard Micorosft AspNetCore DI, you might want to use the other extensions which make CacheManager use + /// If you use the standard Microsoft AspNetCore DI, you might want to use the other extensions which make CacheManager use /// the already injected/shared instance of . /// /// @@ -37,7 +37,7 @@ public static ConfigurationBuilderCachePart WithMicrosoftLogging(this Configurat } /// - /// Enables logging for the cache manager instance using an existion Microsoft.Extensions.Logging.ILoggerFactory as target. + /// Enables logging for the cache manager instance using an existing Microsoft.Extensions.Logging.ILoggerFactory as target. /// /// The builder part. /// The logger factory which should be used. diff --git a/src/CacheManager.Serialization.DataContract/DataContractCacheItem.cs b/src/CacheManager.Serialization.DataContract/DataContractCacheItem.cs index 0af2159e..62c09ef8 100644 --- a/src/CacheManager.Serialization.DataContract/DataContractCacheItem.cs +++ b/src/CacheManager.Serialization.DataContract/DataContractCacheItem.cs @@ -7,7 +7,7 @@ namespace CacheManager.Serialization.DataContract { /// /// The data contract cache item will be used to serialize a . - /// A cannot be derserialized by DataContractSerializer because of the private setters. + /// A cannot be deserialized by DataContractSerializer because of the private setters. /// [DataContract] internal class DataContractCacheItem : SerializerCacheItem diff --git a/src/CacheManager.Serialization.Json/GzJsonCacheSerializer.cs b/src/CacheManager.Serialization.Json/GzJsonCacheSerializer.cs index 6f29142a..1f3b0ea2 100644 --- a/src/CacheManager.Serialization.Json/GzJsonCacheSerializer.cs +++ b/src/CacheManager.Serialization.Json/GzJsonCacheSerializer.cs @@ -8,7 +8,7 @@ namespace CacheManager.Serialization.Json { /// - /// Implements the ICacheSerializer contract using Newtonsoft.Json and the loseless compression. + /// Implements the ICacheSerializer contract using Newtonsoft.Json and the lossless compression. /// public class GzJsonCacheSerializer : JsonCacheSerializer { diff --git a/src/CacheManager.StackExchange.Redis/RedisCacheBackplane.cs b/src/CacheManager.StackExchange.Redis/RedisCacheBackplane.cs index 5897010d..e06632a2 100644 --- a/src/CacheManager.StackExchange.Redis/RedisCacheBackplane.cs +++ b/src/CacheManager.StackExchange.Redis/RedisCacheBackplane.cs @@ -63,7 +63,7 @@ public RedisCacheBackplane(ICacheManagerConfiguration configuration, ILoggerFact RetryHelper.Retry(() => Subscribe(), configuration.RetryTimeout, configuration.MaxRetries, _logger); // adding additional timer based send message invoke (shouldn't do anything if there are no messages, - // but in really rare race conditions, it might happen messages do not get send if SendMEssages only get invoked through "NotifyXyz" + // but in really rare race conditions, it might happen messages do not get send if SendMessages only get invoked through "NotifyXyz" _timer = new Timer(SendMessages, true, 1000, 1000); } @@ -233,7 +233,7 @@ private void SendMessages(object state) // clearing up only after successfully sending. Basically retrying... _messages.Clear(); - // reset log limmiter because we just send stuff + // reset log limiter because we just send stuff loggedLimitWarningOnce = false; } } diff --git a/src/CacheManager.StackExchange.Redis/RedisCacheHandle.cs b/src/CacheManager.StackExchange.Redis/RedisCacheHandle.cs index 2950615d..8174d7de 100644 --- a/src/CacheManager.StackExchange.Redis/RedisCacheHandle.cs +++ b/src/CacheManager.StackExchange.Redis/RedisCacheHandle.cs @@ -114,7 +114,7 @@ public RedisCacheHandle(ICacheManagerConfiguration managerConfiguration, CacheHa if (_redisConfiguration.KeyspaceNotificationsEnabled) { // notify-keyspace-events needs to be set to "Exe" at least! Otherwise we will not receive any events. - // this must be configured per server and should probably not be done automagically as this needs admin rights! + // this must be configured per server and should probably not be done automatically as this needs admin rights! // Let's try to check at least if those settings are configured (the check also works only if useAdmin is set to true though). try { @@ -936,7 +936,7 @@ private bool SetNoScript(CacheItem item, When when, bool sync = fal var setResult = _connection.Database.HashSet(fullKey, HashFieldValue, value, when, flags); - // setResult from fire and forget is alwys false, so we have to assume it works... + // setResult from fire and forget is always false, so we have to assume it works... setResult = flags == CommandFlags.FireAndForget ? true : setResult; if (setResult) @@ -1054,4 +1054,4 @@ private void LoadScripts() } } } -} \ No newline at end of file +} diff --git a/src/CacheManager.StackExchange.Redis/RedisConfiguration.cs b/src/CacheManager.StackExchange.Redis/RedisConfiguration.cs index 3dfb3f01..56c76025 100644 --- a/src/CacheManager.StackExchange.Redis/RedisConfiguration.cs +++ b/src/CacheManager.StackExchange.Redis/RedisConfiguration.cs @@ -101,7 +101,7 @@ public RedisConfiguration( /// The redis database to use. /// Enables keyspace notifications to react on eviction/expiration of items. /// - /// Gets or sets a version number to eventually reduce the avaible features accessible by cachemanager. + /// Gets or sets a version number to eventually reduce the available features accessible by cachemanager. /// public RedisConfiguration( string key, @@ -146,7 +146,7 @@ private ConfigurationOptions CreateConfigurationOptions() public ConfigurationOptions ConfigurationOptions => _configurationOptions; /// - /// Gets or sets a version number to eventually reduce the avaible features accessible by cachemanager. + /// Gets or sets a version number to eventually reduce the available features accessible by cachemanager. /// E.g. set this to "2.4" to disable LUA support. /// /// diff --git a/src/CacheManager.StackExchange.Redis/RedisConfigurationBuilderExtensions.cs b/src/CacheManager.StackExchange.Redis/RedisConfigurationBuilderExtensions.cs index f2b75ab7..031004b7 100644 --- a/src/CacheManager.StackExchange.Redis/RedisConfigurationBuilderExtensions.cs +++ b/src/CacheManager.StackExchange.Redis/RedisConfigurationBuilderExtensions.cs @@ -15,7 +15,7 @@ public static class RedisConfigurationBuilderExtensions /// /// The builder instance. /// - /// The configuration key which can be used to refernce this configuration by a redis cache handle or backplane. + /// The configuration key which can be used to reference this configuration by a redis cache handle or backplane. /// /// The redis configuration object. /// The configuration builder. @@ -35,7 +35,7 @@ public static ConfigurationBuilderCachePart WithRedisConfiguration(this Configur /// /// The builder instance. /// - /// The configuration key which can be used to refernce this configuration by a redis cache handle or backplane. + /// The configuration key which can be used to reference this configuration by a redis cache handle or backplane. /// /// The redis connection string. /// The redis database to be used. @@ -63,7 +63,7 @@ public static ConfigurationBuilderCachePart WithRedisConfiguration(this Configur /// /// The builder instance. /// - /// The configuration key which can be used to refernce this configuration by a redis cache handle or backplane. + /// The configuration key which can be used to reference this configuration by a redis cache handle or backplane. /// /// The connection multiplexer instance. /// The redis database to use for caching. @@ -159,4 +159,4 @@ public static ConfigurationBuilderCacheHandlePart WithRedisCacheHandle(this Conf #pragma warning restore SA1625 } -} \ No newline at end of file +} diff --git a/src/CacheManager.StackExchange.Redis/RedisValueConverter.cs b/src/CacheManager.StackExchange.Redis/RedisValueConverter.cs index dd383b18..5a9b295d 100644 --- a/src/CacheManager.StackExchange.Redis/RedisValueConverter.cs +++ b/src/CacheManager.StackExchange.Redis/RedisValueConverter.cs @@ -103,8 +103,8 @@ public RedisValueConverter(ICacheSerializer serializer) long IRedisValueConverter.FromRedisValue(RedisValue value, string valueType) => (long)value; - // ulong can exceed the supported lenght of storing integers (which is signed 64bit integer) - // also, even if we do not exceed long.MaxValue, the SA client stores it as double for no aparent reason => cast to long fixes it. + // ulong can exceed the supported length of storing integers (which is signed 64bit integer) + // also, even if we do not exceed long.MaxValue, the SA client stores it as double for no apparent reason => cast to long fixes it. RedisValue IRedisValueConverter.ToRedisValue(ulong value) => value > long.MaxValue ? (RedisValue)value.ToString() : checked((long)value); ulong IRedisValueConverter.FromRedisValue(RedisValue value, string valueType) => ulong.Parse(value); @@ -271,4 +271,4 @@ private object Deserialize(RedisValue value, string valueType) return _serializer.Deserialize(value, type); } } -} \ No newline at end of file +} diff --git a/test/CacheManager.Tests/CacheManagerEventsTest.cs b/test/CacheManager.Tests/CacheManagerEventsTest.cs index 9ba342d7..735dc3b6 100644 --- a/test/CacheManager.Tests/CacheManagerEventsTest.cs +++ b/test/CacheManager.Tests/CacheManagerEventsTest.cs @@ -940,7 +940,7 @@ public void Events_OnClearRegion(T cache) cache.OnClear += (sender, args) => data.AddCall(); // this should not trigger cache.OnGet += (sender, args) => data.AddCall(args, key1, key2); // this should not trigger - // on remove now triggeres per cache handle eventually + // on remove now triggers per cache handle eventually cache.OnRemove += (sender, args) => data.AddCall(args, key1, key2); // this should not trigger cache.Put(key1, "something", region1); cache.Put(key2, "something", region2); @@ -1089,7 +1089,7 @@ public void Events_MockedCustomRemove_TestMultiLevelA() level = args.Level; }; - // tests if triggereing the first one really triggers the correct level + // tests if triggering the first one really triggers the correct level var handle = cache.CacheHandles.OfType().First(); handle.TestTrigger("key", null, CacheItemRemovedReason.Expired, null); @@ -1114,7 +1114,7 @@ public void Events_MockedCustomRemove_TestMultiLevelB() level = args.Level; }; - // tests if triggereing the last one really triggers the correct level + // tests if triggering the last one really triggers the correct level var handle = cache.CacheHandles.OfType().Last(); handle.TestTrigger("key", null, CacheItemRemovedReason.Expired, null); diff --git a/test/CacheManager.Tests/CacheManagerExpirationTest.cs b/test/CacheManager.Tests/CacheManagerExpirationTest.cs index 22bf2d1e..a2c425bc 100644 --- a/test/CacheManager.Tests/CacheManagerExpirationTest.cs +++ b/test/CacheManager.Tests/CacheManagerExpirationTest.cs @@ -562,7 +562,7 @@ public void Expiration_DoesNotAcceptExpirationInThePast(T cache) } } - // Issue #57 - Verifying diggits will be ignored and stored as proper milliseconds value (integer). + // Issue #57 - Verifying digits will be ignored and stored as proper milliseconds value (integer). [Theory] [ClassData(typeof(TestCacheManagers))] public void Expiration_DoesNotBreak_OnVeryPreciseValue(T cache) diff --git a/test/CacheManager.Tests/RedisTests.cs b/test/CacheManager.Tests/RedisTests.cs index 55927711..9ed2b2ba 100644 --- a/test/CacheManager.Tests/RedisTests.cs +++ b/test/CacheManager.Tests/RedisTests.cs @@ -236,7 +236,7 @@ await TestBackplaneEventInMemory( CacheEvent.OnAdd, (cacheA, cacheB) => { - // in memory is not distributed, adding only to CacheA the event triggerd on cache B does trigger but cacheB doesn't have the item. + // in memory is not distributed, adding only to CacheA the event triggered on cache B does trigger but cacheB doesn't have the item. cacheB.Add(key, key, region); cacheA.Add(key, key, region); }, @@ -300,7 +300,7 @@ await TestBackplaneEventInMemory( CacheEvent.OnPut, (cacheA, cacheB) => { - // in memory is not distributed, adding only to CacheA the event triggerd on cache B does trigger but cacheB doesn't have the item. + // in memory is not distributed, adding only to CacheA the event triggered on cache B does trigger but cacheB doesn't have the item. cacheA.Add(key, key); cacheA.Put(key, "new val"); }, @@ -1050,7 +1050,7 @@ public void Redis_Valid_CfgFile_LoadWithRedisBackplane() string fileName = TestConfigurationHelper.GetCfgFileName(@"/Configuration/configuration.valid.allFeatures.config"); string cacheName = "redisConfigFromConfig"; - // have to load the configuration manually because the file is not avialbale to the default ConfigurtaionManager + // have to load the configuration manually because the file is not available to the default ConfigurationManager RedisConfigurations.LoadConfiguration(fileName, RedisConfigurationSection.DefaultSectionName); var redisConfig = RedisConfigurations.GetConfiguration("redisFromCfgConfigurationId"); @@ -1074,7 +1074,7 @@ public void Redis_Valid_CfgFile_LoadWithConnectionString() string fileName = TestConfigurationHelper.GetCfgFileName(@"/Configuration/configuration.valid.allFeatures.config"); string cacheName = "redisConfigFromConnectionString"; - // have to load the configuration manually because the file is not avialbale to the default ConfigurtaionManager + // have to load the configuration manually because the file is not available to the default ConfigurationManager RedisConfigurations.LoadConfiguration(fileName, RedisConfigurationSection.DefaultSectionName); var redisConfig = RedisConfigurations.GetConfiguration("redisConnectionString"); diff --git a/test/CacheManager.Tests/SerializerTests.cs b/test/CacheManager.Tests/SerializerTests.cs index 6b091b20..495b45b0 100644 --- a/test/CacheManager.Tests/SerializerTests.cs +++ b/test/CacheManager.Tests/SerializerTests.cs @@ -1403,7 +1403,7 @@ public void BondBinarySerializer_CacheItemOfObject_Primitives(T value) // act var data = serializer.SerializeCacheItem(item); - // not using the type defined, expecting the serializer object to store the actualy value type correctly... + // not using the type defined, expecting the serializer object to store the actual value type correctly... var result = serializer.DeserializeCacheItem(data, typeof(T)); result.Value.Should().Be(value);