clearBucket() public method

Helper used to clear the contents of a bucket. Use the {@see ClearBucket} object directly for more advanced options and control.
public clearBucket ( string $bucket ) : integer
$bucket string Name of the bucket to clear.
return integer Returns the number of deleted keys
Ejemplo n.º 1
0
 /**
  * Helper used to clear the contents of a bucket. Use the {@see ClearBucket} object directly
  * for more advanced options and control.
  *
  * @param string $bucket Name of the bucket to clear.
  *
  * @return int Returns the number of deleted keys
  */
 public function clearBucket($bucket)
 {
     return $this->instance->clearBucket($bucket);
 }