Index: DB/API_REST/print_cache.php |
diff --git a/DB/API_REST/print_cache.php b/DB/API_REST/print_cache.php |
index aaff650ff2e46c3542e233edd479e9a12d2a20fb..017adba26ccc532ef3508d941bfce2c12f697ceb 100644 |
--- a/DB/API_REST/print_cache.php |
+++ b/DB/API_REST/print_cache.php |
@@ -1,14 +1,14 @@ |
<?php |
-ini_set('display_errors', 1); |
-include_once('mem_connect.php'); |
+ini_set('display_errors', 1); //print php errors |
+include_once('mem_connect.php'); //connexion to memcached |
?> |
<h1>Welcome to the marvelous SDN cache</h1> |
</br> |
<?php |
-$keys = $memcache->getAllKeys(); |
+$keys = $memcache->getAllKeys(); //we take all the keys into the cache |
foreach ($keys as $item) { |
- $j_data = $memcache->get($item); |
+ $j_data = $memcache->get($item); //for each key we print its value |
print_r($j_data); |
} |
?> |