Open hrrrrustic opened 1 year ago
You'll want to use .WithPrefix()
on IDatabase
which handles all this internally - I'll leave this until until we update the message to be clearer :)
You'll want to use
.WithPrefix()
onIDatabase
which handles all this internally - I'll leave this until until we update the message to be clearer :)
Thanks. I also found Prepend
method (it's public) that just pass call to WithPrefix
. Might be reasonable to add it to the message too
Redis
+ operator
is obsoleted with message to useWithPrefix
method https://github.com/StackExchange/StackExchange.Redis/blob/84766514b0af2d24ba4273506b389c1992ef382b/src/StackExchange.Redis/RedisKey.cs#L313-L315But the method is internal https://github.com/StackExchange/StackExchange.Redis/blob/84766514b0af2d24ba4273506b389c1992ef382b/src/StackExchange.Redis/RedisKey.cs#L317
Am I missing something or there is no way to use prefix logic without supressing obsolete warning?