lib/tabs/metrics/task.rb in tabs-0.6.1 vs lib/tabs/metrics/task.rb in tabs-0.6.2

- old
+ new

@@ -37,9 +37,13 @@ completion_rate: completion_rate, average_completion_time: average_completion_time } end + def drop! + del_by_prefix("stat:task:#{key}") + end + private def tokens_for_period(range, resolution, type) keys = Task::Token.keys_for_range(key, range, resolution, type) mget(*keys).compact.map(&:to_a).flatten.map { |t| Token.new(t, key) }