public function getStream($id) { if (!isset($this->used[$id])) { $path = str_replace('redis://', '', $id); /** * @todo remove this from here */ $content = \VRS\Redis\Client::getInstance()->get($path); $this->used[$id] = new Stream($id, $content); } return $this->used[$id]; }
public function write($data) { // ugly solution for FILE_APPEND if ($this->append) { $this->position = $this->size(); } $size = parent::write($data); /** * @todo remove this from here */ \VRS\Redis\Client::getInstance()->set($this->id, $this->content); return $size; }