/** * Saves the object on the file system * * * @param string $objectId * @param mixed $object */ public function save($objectId, $object) { $path = $this->keyPath($objectId); WURFL_FileUtils::write($path, $object); }
public function save($key, $value) { $value = new StorageObject($value, $this->expire); $path = $this->keyPath($key); WURFL_FileUtils::write($path, $value); }
public function put($key, $value) { $mtime = time() + $this->expire; $path = $this->keyPath($key); WURFL_FileUtils::write($path, $value, $mtime); }