Add comments to cache files

This commit is contained in:
Kijin Sung 2016-04-17 14:41:18 +09:00
parent 273671cf4e
commit 568151b5ee
3 changed files with 13 additions and 9 deletions

View file

@ -95,7 +95,7 @@ class File implements \Rhymix\Framework\Drivers\CacheInterface
*/
public function set($key, $value, $ttl)
{
return Storage::writePHPData($this->_getFilename($key), array($ttl ? (time() + $ttl) : 0, $value));
return Storage::writePHPData($this->_getFilename($key), array($ttl ? (time() + $ttl) : 0, $value), $key);
}
/**