lib/redisstore.rb
##
# Clears a specified key or the whole store
Clears a specified key or the whole store
Clears a specified key or the whole store
def clear!(key = nil)
      if key.nil?
        @data.flushdb && {}
      else
        key = prep(key)
        value = @data.get key
        @data.del key
        parse value
      end
    end
def clear! ( key = nil ) if key . nil? @data . flushdb && { } else key = prep ( key ) value = @data . get key @data . del key parse value end end
Clears a specified key or the whole store
Clears a specified key or the whole store
key
<not_specific>