存数据
boolean Driver_Cache_Driver_WinCache::set( string/array $key [, $data $value = null , $lifetime $lifetime = integer 3600 ] )
参数列表
参数 类型 描述 默认值 $keystring/array支持多存 $value$dataValue 多存时此项可空 null $lifetime$lifetime有效期,默认3600,即1小时,0表示最大值30天(2592000) integer 3600 
boolean public function set($key, $value = null, $lifetime = 3600)
{
    if ($this->prefix)
    {
        if (is_array($key))
        {
            $new_key = array();
            foreach ($key as $k=>$v)
            {
                $new_key[$this->prefix . $k] = $v;
            }
            $key = $new_key;
        }
        else
        {
            $key = $this->prefix . $key;
        }
    }
    if (IS_DEBUG)Core::debug()->info($key, 'wincache set key');
    if (is_array($key))
    {
        $return = true;
        foreach ($key as $k => &$v)
        {
            $this->_format_data($v);
            $s = wincache_ucache_set($k, $v, $lifetime);
            if (false === $s)
            {
                $return = false;
            }
        }
        return $return;
    }
    else
    {
        $this->_format_data($value);
        return wincache_ucache_set($key, $value, $lifetime);
    }
}