GlisWeb framework
memcache.php
Vai alla documentazione di questo file.
1 <?php
2 
3 require '../../../_src/_lib/_string.tools.php';
4 
5 header( "content-type: text/plain" );
6 header( "refresh: 5" );
7 
8 $memcache = memcache_connect('localhost', 11211);
9 $stats = memcache_get_stats($memcache);
10 
11 echo writeByte( $stats['bytes'] ) . ' usati su ' . writeByte( $stats['limit_maxbytes'] ) . PHP_EOL;
12 echo sprintf( '%01.2f', $stats['bytes'] * 100 / $stats['limit_maxbytes'] ) . '% in uso' . PHP_EOL;
13 echo 'trovati ' . $stats['get_hits'] . ' oggetti contro ' . $stats['get_misses'] . ' non trovati' . PHP_EOL;
14 
15 print_r( $stats );
16 
17 ?>
writeByte( $filesize)
$stats
Definition: memcache.php:9
$memcache
Definition: memcache.php:8