Left: | ||
Right: |
OLD | NEW |
---|---|
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 ?> |
OLD | NEW |