lib/redis-model-extension/initialize.rb
def redis_field name, type, default = nil
      redis_user_field_config << name

      # remember field to save into redis
      redis_fields_config[name] = type

      # remember field default value
      redis_fields_defaults_config[name] = default

      define_attribute_method name
    end
def redis_field name, type, default = nil
      redis_user_field_config << name

      # remember field to save into redis
      redis_fields_config[name] = type

      # remember field default value
      redis_fields_defaults_config[name] = default

      define_attribute_method name
    end
add new field which will be saved into redis
 * name - name of your variable
 * type - type of your variable (:integer, :float, :string, :array, :hash)
 * (default) - default value of your variable