<?php
/**
 * Copy Right IJH.CC
 * Each engineer has a duty to keep the code elegant
 * Author shzhrui<anhuike@gmail.com>
 * $Id: mcached.mdl.php 9343 2015-03-24 07:07:00Z youyi $
 */

if(!defined('__CORE_DIR')){
    exit("Access Denied");
}

//源生memcached
Import::I('cache');
class Mdl_Cache_Mcached extends Memcached implements Cache_Interface
{
    

    public function __construct(&$system)
    {
        parent::__construct();
		$cfg = explode(':', __CFG::MEMCACHE);
		if($this->addServer($cfg[0], $cfg[1])){	
            trigger_error('Connect Mcache Server Fail!', E_USER_ERROR);
        }
    }

    //Memcached::set($key, $val, $ttl);
    //Memcached::get($key);
    //Memcached::delete($key)
    //Memcached::flush();
}