首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

realpath_cache_get

(PHP 5 >= 5.3.2, PHP 7)

realpath_cache_get - 获取实时路径缓存条目

描述

代码语言:javascript
复制
array realpath_cache_get ( void )

获取实时路径缓存的内容。

返回值

返回一个真实路径缓存条目数组。键是原始路径条目,值是数据项的数组,其中包含解析的路径,到期日期和其他保存在缓存中的选项。

示例

Example #1 realpath_cache_get() example

代码语言:javascript
复制
<?php
var_dump(realpath_cache_get());
?>

上面的例子会输出类似于:

代码语言:javascript
复制
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() - 获取实际路径缓存大小

← readlink

realpath_cache_size →

扫码关注腾讯云开发者

领取腾讯云代金券