realpath_cache_get 함수
(PHP 5 >= 5.3.2, PHP 7, PHP 8)
realpath_cache_get — 실제 경로 캐시 항목 가져오기
설명
realpath_cache_get(): array
realpath 캐시의 내용을 가져옵니다.
매개변수
이 함수에는 매개변수가 없습니다.
반환 값
실제 경로 캐시 항목의 배열을 반환합니다. 키는 원래 경로 항목이고 값은 확인된 경로, 만료 날짜 및 캐시에 보관된 기타 옵션을 포함하는 데이터 항목의 배열입니다.
Examples
예제 #1 realpath_cache_get() 예제
<?php
var_dump(realpath_cache_get());
?>
위의 예는 다음과 유사한 결과를 출력합니다.
array(2) { ["/test"]=> array(4) { ["key"]=> int(123456789) ["is_dir"]=> bool(true) ["realpath"]=> string(5) "/test" ["expires"]=> int(1260318939) } ["/test/test.php"]=> array(4) { ["key"]=> int(987654321) ["is_dir"]=> bool(false) ["realpath"]=> string(12) "/root/test.php" ["expires"]=> int(1260318939) } }
기타
- realpath_cache_size() - 실제 경로 캐시 크기 가져오기