<?php
/**
* Created by PhpStorm.
* User: song
* Date: 2016/6/5
* Time: 18:38
*/
$city=$_GET['city'];
$content=$_GET['content'];
//缓存
$m=new Memcache();
$m->connect('127.0.0.1',11211);
$m->delete($city);
$m->set($city,$content,0,3600);
echo "memcache已缓存";