apcu_key_info
(사용 가능한 버전 정보가 없으며 Git에만 있을 수 있음)
apcu_key_info — 캐시 키에 대한 자세한 정보 가져오기
설명
apcu_key_info(string $key
): ?array
캐시 키에 대한 자세한 정보 얻기
매개변수
key
- 캐시 키에 대한 자세한 정보 얻기
반환 값
캐시 키에 대한 자세한 정보가 포함된 배열이거나 키가 없으면 null
입니다.
Examples
예제 #1 apcu_key_info() 예제
<?php
apcu_add('a','b');
var_dump(apcu_key_info('a'));
?>
위의 예는 다음을 출력합니다.
array(7) { ["hits"]=> int(0) ["access_time"]=> int(1606701783) ["mtime"]=> int(1606701783) ["creation_time"]=> int(1606701783) ["deletion_time"]=> int(0) ["ttl"]=> int(0) ["refs"]=> int(0) }
기타
- apcu_store() - 데이터 저장소에 변수 캐시
- apcu_fetch() - 캐시에서 저장된 변수를 가져옵니다.
- apcu_delete() - 캐시에서 저장된 변수를 제거합니다.