www.gusucode.com > Destoon B2B仿淘宝电子商务网站 UTF8 v6.0源码程序 > destoon/include/cache_wincache.class.php
<?php /* [Destoon B2B System] Copyright (c) 2008-2015 www.destoon.com This is NOT a freeware, use is subject to license.txt */ defined('IN_DESTOON') or exit('Access Denied'); class dcache { var $pre; function dcache() { // } function get($key) { return wincache_ucache_get($this->pre.$key); } function set($key, $val, $ttl = 600) { return wincache_ucache_set($this->pre.$key, $val, $ttl); } function rm($key) { return wincache_ucache_delete($this->pre.$key); } function clear() { return wincache_ucache_clear(); } function expire() { return true; } } ?>