Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- # Connect to all the memcached servers
- $memcache = new Memcache;
- $servers = array(
- "riesling",
- "front1",
- );
- foreach($servers as $server) {
- $memcache->addServer($server, 11211);
- }
- $bytes = file_get_contents("./images/logo_tagmy.com.gif");
- for($i=0; $i<10000000; $i++) {
- $memcache->set($i, $bytes);
- }
- ?>
Add Comment
Please, Sign In to add comment