Skip to content

Commit

Permalink
Fixed an issue causing not adding the default keyPrefix when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjrh committed Sep 28, 2017
1 parent c63f489 commit 8d49097
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RedisCachingProvider/RedisCachingProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ private static string KeyPrefix
{
hostGuid = Entities.Host.Host.GUID;
}
_keyPrefix = string.Format("{0}_", Shared.GetProviderConfigAttribute(ProviderName, "keyPrefix", hostGuid));
_keyPrefix = Shared.GetProviderConfigAttribute(ProviderName, "keyPrefix", hostGuid);
if (string.IsNullOrEmpty(_keyPrefix))
_keyPrefix = hostGuid;
_keyPrefix = $"{_keyPrefix}_";
}
return _keyPrefix;
}
Expand Down
1 change: 1 addition & 0 deletions RedisCachingProvider/ReleaseNotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ Redis cache. Note that all the objects must be serializable. If you try to inse
<p style="margin: 0">- The Redis client automatically reconnects after a Redis connection failure</p>
<p style="margin: 0"><b>Version 03.00.01</b></p>
<p style="margin: 0">- Fixed an issue when parsing the Redis connection string</p>
<p style="margin: 0">- Fixed an issue causing not adding the default keyPrefix when empty</p>

0 comments on commit 8d49097

Please sign in to comment.