ThinkPHP5


think\template\driver\File
library\think\template\driver\File.php at line 16

Class File

File

public class File


Method Summary
void|array

write(string cacheFile, string content)

写入编译缓存

void

read(string cacheFile, array vars)

读取编译编译

boolean

check(string cacheFile, int cacheTime)

检查编译缓存是否有效

Method Detail

library\think\template\driver\File.php at line 24

write

public void|array write(string cacheFile, string content)

写入编译缓存

Parameters:
cacheFile - 缓存的文件名
content - 缓存的内容

library\think\template\driver\File.php at line 43

read

public void read(string cacheFile, array vars)

读取编译编译

Parameters:
cacheFile - 缓存的文件名
vars - 变量数组

library\think\template\driver\File.php at line 59

check

public boolean check(string cacheFile, int cacheTime)

检查编译缓存是否有效

Parameters:
cacheFile - 缓存的文件名
cacheTime - 缓存时间

ThinkPHP5