/// <summary> /// Basic stub for cleaning up tags on a specific interval. /// </summary> private static void CleanupByProbability(IRedisClient client) { // NOTE: better probability and guarantees about min/max intervals left as excercise for reader. var p = Rng.NextDouble(); if (p > 0.05d) { return; } client.CleanupTags(); }