Method: Redis::List#unshift

Defined in:
lib/redis/list.rb

#unshift(value) ⇒ Object

Add a member to the start of the list. Redis: LPUSH



39
40
41
# File 'lib/redis/list.rb', line 39

def unshift(value)
  redis.lpush(key, to_redis(value))
end