lib/liszt/redis_list.rb
# Push the given id onto the top of the list, if not already present.
# @param [Fixnum] id
# @return [Boolean] <tt>false</tt> if the item was already in the list,
#   <tt>true</tt> otherwise.
Push the given id onto the top of the list, if not already present.
Push the given id onto the top of the list if not already present .
def unshift(id)
      if include?(id)
        false
      else
        unshift!(id)
        true
      end
    end
def unshift ( id ) if include? ( id ) false else unshift! ( id ) true end end
Push the given id onto the top of the list, if not already present.
Push the given id onto the top of the list if not already present .
false if the item was already in the list, true otherwise.
false if the item was already in the list true otherwise .
Boolean
id
<not_specific>
<not_specific>
None