Reset() isn’t used internally, but it’s an API that can be used to reset the Redis DB back to its initial state.
Unfortunately using redis.FlushDb() is cleanest approach, and your example wont work. You would need to delete every ChannelSet, UserSet, UserNameSet and SessionSet which is a different set per entry.
Anyway I’ve updated it with a more conservative impl in this commit:
local.Reset();
using (var redis = clientsManager.GetClient())
{
var keysToDelete = new List<string> { RedisIndex.ActiveSubscriptionsSet };
keysToDelete.AddRange(redis.SearchKeys(RedisIndex.Subscription.Replace("{0}", "*")));
keysToDelete.AddRange(redis.SearchKeys(RedisIndex.ChannelSet.Replace("{0}", "*")));
keysToDelete.AddRange(redis.SearchKeys(RedisIndex.UserIdSet.Replace("{0}", "*")));
keysToDelete.AddRange(redis.SearchKeys(RedisIndex.UserNameSet.Replace("{0}", "*")));
keysToDelete.AddRange(redis.SearchKeys(RedisIndex.SessionSet.Replace("{0}", "*")));
redis.RemoveAll(keysToDelete);
}