捌度空间 缓存类(3)


        elseif typename(obj)="Object" then
            if obj is var2 then
                equal=true
            else
                equal=false
            end if
        elseif typename(obj)="Variant()" then
            if join(obj,"^")=join(var2,"^") then
                equal=true
            else
                equal=false
            end if
        else
            if obj=var2 then
                equal=true
            else
                equal=false
            end if
        end if
    end function
end class
%>

使用方法:
复制代码 代码如下:

    set myCache=new cache
    myCache.name="flash1"
    If myCache.valid then
        StartGet = myCache.value
    Else
        StartGet = GetHttpPage(HttpUrl)    
        myCache.add StartGet,dateadd("h",3,Now)
    End if 
    List=GetBody(StartGet,"</form>","<!-- ********网页中部代码结束******** -->",False,False)