public function load($key, $offset = 0, $limit = null) { $f = $this->createFile($this->sanitizeFilename($key)); if ($f) { if (!$limit) { $limit = -1; } $data = stream_get_contents($f, $limit, $offset); fclose($f); return $data; } return false; }