lib/pulse_meter/sensor/timeline.rb
# Clean up all sensor metadata and data
Clean up all sensor metadata and data
Clean up all sensor metadata and data
def cleanup
        keys = redis.keys(raw_data_key('*')) + redis.keys(data_key('*'))
        multi do
          keys.each{|key| redis.del(key)}
        end
        super
      end
def cleanup keys = redis . keys ( raw_data_key ( '*' ) ) + redis . keys ( data_key ( '*' ) ) multi do keys . each { | key | redis . del ( key ) } end super end
Clean up all sensor metadata and data
Clean up all sensor metadata and data