PHP 클래스 yii\caching\FileDependency
If the last modification time of the file specified via [[fileName]] is changed,
the dependency is considered as changed.
For more details and usage information on Cache, see the
guide article on caching.
파일 보기
프로젝트 열기: yiisoft/yii2
1 사용 예제들
공개 프로퍼티들
프로퍼티 |
타입 |
설명 |
|
$fileName |
|
the file path or path alias whose last modification time is used to
check if the dependency has been changed. |
|
보호된 메소드들
메소드 상세
generateDependencyData()
보호된 메소드
This method returns the file's last modification time.
protected generateDependencyData ( Cache $cache ) : mixed |
$cache |
Cache |
the cache component that is currently evaluating this dependency |
리턴 |
mixed |
the data needed to determine if dependency has been changed. |
프로퍼티 상세
the file path or path alias whose last modification time is used to
check if the dependency has been changed.