common/confing.php
'DATA_CACHE_TYPE' => 'Memcache', // 数据缓存类型,支持:File|Db|Apc|Memcache|Shmop|Sqlite|Xcache|Apachenote|Eaccelerator
'MEMCACHE_HOST' =>'127.0.0.1',
'MEMCACHE_PORT' =>11211,
此时就可以通过tp3.2中的s方法进行memcahe的操作了
S($key,$val,0(0为永久));