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

Side by Side Diff: DB/API_REST/print_cache.php

Issue 334860043: all DB code commented
Patch Set: Created 6 years, 5 months ago
Left:
Right:
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 unified diff | Download patch
OLDNEW
1 <?php 1 <?php
2 ini_set('display_errors', 1); 2 ini_set('display_errors', 1); //print php errors
3 include_once('mem_connect.php'); 3 include_once('mem_connect.php'); //connexion to memcached
4 4
5 ?> 5 ?>
6 <h1>Welcome to the marvelous SDN cache</h1> 6 <h1>Welcome to the marvelous SDN cache</h1>
7 </br> 7 </br>
8 <?php 8 <?php
9 $keys = $memcache->getAllKeys(); 9 $keys = $memcache->getAllKeys(); //we take all the keys into the cache
10 foreach ($keys as $item) { 10 foreach ($keys as $item) {
11 » » $j_data = $memcache->get($item); 11 » » $j_data = $memcache->get($item); //for each key we print its val ue
12 print_r($j_data); 12 print_r($j_data);
13 } 13 }
14 ?> 14 ?>
OLDNEW

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