PHP Class phprs\util\FileExpiredChecker

Author: caoym
Exibir arquivo Open project: caoym/phprs-restful

Public Methods

Method Description
__construct ( string | array $file_name )
__invoke ( mixed $data, $create_time ) : boolean 判断是否过期

Method Details

__construct() public method

public __construct ( string | array $file_name )
$file_name string | array 文件的绝对路径

__invoke() public method

判断是否过期
public __invoke ( mixed $data, $create_time ) : boolean
$data mixed 从缓存中得到的数据
return boolean