LEFT | RIGHT |
(no file at all) | |
1 <?php | 1 <?php |
2 //ini_set('display_errors', 1); | 2 //we print every data stored into the cache |
3 include_once('mem_connect.php'); | 3 include_once('mem_connect.php'); //connect to the memcached module |
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 //this loop print every value linked to every key stored into the cache |
9 $keys = $memcache->getAllKeys(); | 10 $keys = $memcache->getAllKeys(); |
10 foreach ($keys as $item) { | 11 foreach ($keys as $item) { |
11 $j_data = $memcache->get($item); | 12 $j_data = $memcache->get($item); |
12 print_r($j_data); | 13 print_r($j_data); |
13 } | 14 } |
14 ?> | 15 ?> |
LEFT | RIGHT |