Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(42)

Unified Diff: DB/API_REST/print_cache.php

Issue 334860043: all DB code commented
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
?>

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b