当前位置: 首页>>代码示例>>PHP>>正文


PHP phpFastCache::debug方法代码示例

本文整理汇总了PHP中phpFastCache::debug方法的典型用法代码示例。如果您正苦于以下问题:PHP phpFastCache::debug方法的具体用法?PHP phpFastCache::debug怎么用?PHP phpFastCache::debug使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在phpFastCache的用法示例。


在下文中一共展示了phpFastCache::debug方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

/*
 * A Testing File for you can try testing & debugging phpFastCache;
 * Just run on your webserver http://localhost/webserver/testing/index.php
 * Any question please skype: khoaofgod or email khoaofgod@yahoo.com
 * More information at http://www.phpfastcache.com
 */
include "php_fast_cache.php";
$caching = array("auto", "files", "pdo", "mpdo", "xcache", "apc", "memcache", "memcached", "wincache");
$tmp = new phpFastCache();
// data use for caching ^ testing
$data = array(1, "abc hello world", "", null, 0, array(1, 2, 3, 4, "string", null, "", "GOT IT", "KEY" => "VALUE", "N" => null, "E" => "", "X" => -1));
// $data = array(null,null,"",null);
echo "Try get Server information ... Take 10 - 15 seconds to detect ...<br>";
phpFastCache::debug(phpFastCache::systemInfo());
echo "<b>Data will be testing - Included NULL and Emptry String</b>";
phpFastCache::debug($data);
$c = array("red", "blue", "green", "orange", "black", "red", "blue", "green", "orange", "black");
$xx = 0;
foreach ($caching as $st) {
    $dem = 0;
    $color = $c[$xx];
    $xx++;
    phpFastCache::$storage = $st;
    echo "<font color={$color} >\n    ------------------------------------------------- <br>\n    Caching = {$st} <br>";
    if (isset(phpFastCache::$sys['drivers'][$st]) && phpFastCache::$sys['drivers'][$st] == true || $st == "auto") {
        foreach ($data as $string) {
            $dem++;
            echo "SET {$dem} --> ";
            phpFastCache::set("A" . $dem, $string);
            echo "GET {$dem} = ";
            $x = phpFastCache::get("A" . $dem);
开发者ID:sankam-nikolya,项目名称:lptt,代码行数:31,代码来源:testing.php


注:本文中的phpFastCache::debug方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。