lib/command/list.js
function lrem(key, count, value, req) {
  var val = this.getKey(key, req);
  if(val === undefined) return 0;
  var deleted = val.lrem(count, value);
  if(val.llen() === 0) {
    this.delKey(key, req);
  }
  return deleted;
}
function lrem(key, count, value, req) {
  var val = this.getKey(key, req);
  if(val === undefined) return 0;
  var deleted = val.lrem(count, value);
  if(val.llen() === 0) {
    this.delKey(key, req);
  }
  return deleted;
}
function lrem ( key , count , value , req ) { var val = this . getKey ( key , req ) ; if ( val === undefined ) return 0 ; var deleted = val . lrem ( count , value ) ; if ( val . llen ( ) === 0 ) { this . delKey ( key , req ) ; } return deleted ; }
Removes the first count occurrences of elements equal to value
from the list stored at key.
Removes the first count occurrences of elements equal to value from the list stored at key .