src/Storage/Bloc.php
public function clear($uid = null) {
        if (null === $uid) {
            $this->alloc();
            return shm_remove($this->memory);
        }
        if (!is_int($uid) && !is_numeric($uid)) {
            throw new Exception\RuntimeException('Segment type key must integer or numeric.');
        }
        $this->alloc();
        if (!$this->has($uid)) {
            return false;
        }
        return shm_remove_var($this->memory, $uid);
    }
public function clear($uid = null) {
        if (null === $uid) {
            $this->alloc();
            return shm_remove($this->memory);
        }
        if (!is_int($uid) && !is_numeric($uid)) {
            throw new Exception\RuntimeException('Segment type key must integer or numeric.');
        }
        $this->alloc();
        if (!$this->has($uid)) {
            return false;
        }
        return shm_remove_var($this->memory, $uid);
    }
Clear datas with $uid key
@param mixed $uid
@return void