$cache
$cache : \think\Cache
Class Driver
$cache : \think\Cache
$filesystem : \League\Flysystem\Filesystem
__construct(\think\Cache $cache, array $config)
| \think\Cache | $cache | |
| array | $config |
putFile(string $path, \think\File $file, null|string|\Closure $rule = null, array $options = array()) : boolean|string
保存文件
| string | $path | 路径 |
| \think\File | $file | 文件 |
| null|string|\Closure | $rule | 文件名规则 |
| array | $options | 参数 |
putFileAs(string $path, \think\File $file, string $name, array $options = array()) : boolean|string
指定文件名保存文件
| string | $path | 路径 |
| \think\File | $file | 文件 |
| string | $name | 文件名 |
| array | $options | 参数 |
createFilesystem(\League\Flysystem\AdapterInterface $adapter)
| \League\Flysystem\AdapterInterface | $adapter |