lib/redis-model-extension/old_initialize.rb
def conf
      fields = {}
      redis_fields_config.each do |key, type|
        fields[key] = TYPE_TRANSLATIONS[type] if TYPE_TRANSLATIONS.has_key?(type)
      end
      {
        fields: fields,
        required: @required_config.sort,
        redis_key: redis_key_config,
        redis_aliases: redis_alias_config.inject({}){|o,(k,v)| o[k] = v[:main_fields]; o},
        reject_nil_values: !redis_save_fields_with_nil_conf,
      }
    end
def conf
      fields = {}
      redis_fields_config.each do |key, type|
        fields[key] = TYPE_TRANSLATIONS[type] if TYPE_TRANSLATIONS.has_key?(type)
      end
      {
        fields: fields,
        required: @required_config.sort,
        redis_key: redis_key_config,
        redis_aliases: redis_alias_config.inject({}){|o,(k,v)| o[k] = v[:main_fields]; o},
        reject_nil_values: !redis_save_fields_with_nil_conf,
      }
    end
get config hash