@@ -35,7 +35,7 @@ public RedisFacade(string configuration, string keyPrefix, ILog log) : this(Conf
35
35
}
36
36
public RedisFacade ( ConfigurationOptions redisOptions , string keyPrefix , ILog log )
37
37
{
38
- this . keyPrefix = keyPrefix ;
38
+ this . keyPrefix = keyPrefix + ":HalibutRedis" ;
39
39
this . log = log . ForContext < RedisFacade > ( ) ;
40
40
objectLifetimeCts = new CancelOnDisposeCancellationToken ( ) ;
41
41
objectLifeTimeCancellationToken = objectLifetimeCts . Token ;
@@ -188,7 +188,7 @@ public async Task<IAsyncDisposable> SubscribeToChannel(string channelName, Func<
188
188
189
189
string ToPrefixedChannelName ( string channelName )
190
190
{
191
- return "channel:" + keyPrefix + ":" + channelName ;
191
+ return keyPrefix + ":channel :" + channelName ;
192
192
}
193
193
194
194
public async Task PublishToChannel ( string channelName , string payload , CancellationToken cancellationToken )
@@ -218,7 +218,7 @@ await ExecuteWithRetry(async () =>
218
218
219
219
RedisKey ToHashKey ( string key )
220
220
{
221
- return "hash:" + keyPrefix + ":" + key ;
221
+ return keyPrefix + ":hash :" + key ;
222
222
}
223
223
224
224
public async Task < bool > HashContainsKey ( string key , string field , CancellationToken cancellationToken )
@@ -297,7 +297,7 @@ await ExecuteWithRetry(async () =>
297
297
298
298
RedisKey ToListKey ( string key )
299
299
{
300
- return "list:" + keyPrefix + ":" + key ;
300
+ return keyPrefix + ":list :" + key ;
301
301
}
302
302
303
303
public async Task ListRightPushAsync ( string key , string payload , TimeSpan ttlForAllInList , CancellationToken cancellationToken )
@@ -330,7 +330,7 @@ await ExecuteWithRetry(async () =>
330
330
331
331
RedisKey ToStringKey ( string key )
332
332
{
333
- return "string:" + keyPrefix + ":" + key ;
333
+ return keyPrefix + ":string :" + key ;
334
334
}
335
335
336
336
public async Task SetString ( string key , string value , TimeSpan ttl , CancellationToken cancellationToken )
0 commit comments