Ejemplo n.º 1
0
 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);
         if (is_array($x)) {
             print_r($x);
         } else {
             echo $x;
             if (is_numeric($x)) {
                 phpFastCache::increment("A" . $dem);
                 phpFastCache::increment("A" . $dem);
                 phpFastCache::increment("A" . $dem);
                 $x = phpFastCache::get("A" . $dem);
                 echo " Increase to " . $x;
                 phpFastCache::decrement("A" . $dem);
                 phpFastCache::decrement("A" . $dem);
                 phpFastCache::decrement("A" . $dem);
                 $x = phpFastCache::get("A" . $dem);
                 echo " Decrease to " . $x;
             }
         }
         phpFastCache::delete("A" . $dem);
         echo " || Finished Testing || Deleted ";
         echo "<br>";
     }
 } else {
     echo " <-- NOT SUPPORTED ON THIS SERVER WITH DEFAULT CONFIG 127.0.0.1 <br>";