conf/Config.php
引入
- 'DATA_CACHE_TYPE' => 'Memcache',
- 'MEMCACHE_HOST' => 'tcp://127.0.0.1:11211',
- 'DATA_CACHE_TIME' => '3600',
使用实例:
- $Cache = Cache::getInstance('Memcache');
- $Cache->set("aa",60,60);
- echo $Cache->get("aa")."==";
转载请注明:苏demo的别样人生 » thinkphp 3.2 引入memcache 支持