lib/command/list.js
function lpush(key /*value-1, value-N, req*/) {
  var val = this.getKey(key, req)
    , args = slice.call(arguments, 1)
    , req;
  if(typeof args[args.length - 1] === 'object') {
    req = args.pop();
  }
  if(val === undefined) {
    val = new List();
    this.setKey(key, val, undefined, undefined, undefined, req);
  }
  return val.lpush(args);
}
function lpush(key /*value-1, value-N, req*/) {
  var val = this.getKey(key, req)
    , args = slice.call(arguments, 1)
    , req;
  if(typeof args[args.length - 1] === 'object') {
    req = args.pop();
  }
  if(val === undefined) {
    val = new List();
    this.setKey(key, val, undefined, undefined, undefined, req);
  }
  return val.lpush(args);
}
function lpush ( key /*value-1, value-N, req*/ ) { var val = this . getKey ( key , req ) , args = slice . call ( arguments , 1 ) , req ; if ( typeof args [ args . length - 1 ] === 'object' ) { req = args . pop ( ) ; } if ( val === undefined ) { val = new List ( ) ; this . setKey ( key , val , undefined , undefined , undefined , req ) ; } return val . lpush ( args ) ; }
Insert all the specified values at the head of the list stored at key.
Insert all the specified values at the head of the list stored at key .