lib/command/set.js
function spop(key, req) {
  var val = this.getKey(key, req);
  if(val === undefined) return null;
  var element = val.spop();
  if(val.scard() === 0) {
    this.delKey(key, req);
  }
  return element;
}
function spop(key, req) {
  var val = this.getKey(key, req);
  if(val === undefined) return null;
  var element = val.spop();
  if(val.scard() === 0) {
    this.delKey(key, req);
  }
  return element;
}
function spop ( key , req ) { var val = this . getKey ( key , req ) ; if ( val === undefined ) return null ; var element = val . spop ( ) ; if ( val . scard ( ) === 0 ) { this . delKey ( key , req ) ; } return element ; }
Removes and returns a random element from the set value
stored at key.
Removes and returns a random element from the set value stored at key .