lib/redis_assist/base.rb
def read_list(name)
      opts = self.class.persisted_attrs[name]

      if !lists[name] && opts[:default]
        opts[:default]
      else
        send("#{name}=", lists[name].value) if lists[name].is_a?(Redis::Future)
        lists[name]
      end
    end
def read_list(name)
      opts = self.class.persisted_attrs[name]

      if !lists[name] && opts[:default]
        opts[:default]
      else
        send("#{name}=", lists[name].value) if lists[name].is_a?(Redis::Future)
        lists[name]
      end
    end
def read_list ( name ) opts = self . class . persisted_attrs [ name ] if ! lists [ name ] && opts [ :default ] opts [ :default ] else send ( "#{name}=" , lists [ name ] . value ) if lists [ name ] . is_a? ( Redis :: Future ) lists [ name ] end end
Transform and read a list attribute
Transform and read a list attribute