code: public function clear($uid = null) {
          if ($uid) {
              unset($this->data[$uid]);
              return;
          }
          $this->data[$uid] = array();
      }
docs: Clear datas with $uid key
  @param mixed $uid
  @return void