public function lock($id, $value, array $parameters = array())
    {
        $id = ltrim($id, '\\');

        $obj = $this->set($id, $value, $parameters);
        $this->offsetSet("lock.{$id}", true);

        return $obj;
    }