lib/redis-model-extension/redis_key.rb
def generate_key args = {}, key = "key"
      #normalize input hash of arguments
      args = HashWithIndifferentAccess.new(args)

      out = "#{self.name.to_s.underscore.to_sym}:#{key}"
      redis_key_config.each do |key|
        out += add_item_to_redis_key args, key
      end
      out
    end
def generate_key args = {}, key = "key"
      #normalize input hash of arguments
      args = HashWithIndifferentAccess.new(args)

      out = "#{self.name.to_s.underscore.to_sym}:#{key}"
      redis_key_config.each do |key|
        out += add_item_to_redis_key args, key
      end
      out
    end
Generates redis key for storing object
 * will produce something like: your_class:key:field_value1:field_value2...
 (depending on your redis_key setting)