Skip to content

Instantly share code, notes, and snippets.

@dereklee86
dereklee86 / memcache_bench.php
Created November 10, 2015 19:44 — forked from tony4d/memcache_bench.php
Benchmark the memcache php extension from cli
<?php
/*
exit codes:
0 - everything ok.
1 - failure to connect
*/
if ( ! extension_loaded('memcache') ) {
die("memcache pecl module is not available. Please install a STABLE version from http://pecl.php.net/package/memcache");
}