国产片侵犯亲女视频播放_亚洲精品二区_在线免费国产视频_欧美精品一区二区三区在线_少妇久久久_在线观看av不卡

服務(wù)器之家:專注于服務(wù)器技術(shù)及軟件下載分享
分類導(dǎo)航

PHP教程|ASP.NET教程|Java教程|ASP教程|編程技術(shù)|正則表達(dá)式|C/C++|IOS|C#|Swift|Android|VB|R語言|JavaScript|易語言|vb.net|

服務(wù)器之家 - 編程語言 - ASP教程 - asp自帶的內(nèi)存緩存 application

asp自帶的內(nèi)存緩存 application

2019-09-06 11:45服務(wù)器之家 ASP教程

asp強(qiáng)大的application 是 php 中所沒有的。昨天朋友抱怨他的人才網(wǎng)站讀取速度慢,于是我?guī)退補(bǔ)sp中讀庫比較費(fèi)時(shí)的部分用application做了緩存。

函數(shù)getcache,會(huì)自動(dòng)建立需要的緩存。 

復(fù)制代碼代碼如下:


Function getcache(funsname,isreset,isarr,timeinfo) 
‘funsname — 需要緩存的內(nèi)容,這里要輸入一個(gè)function名 
‘isreset –是否更新[值:0(根據(jù)時(shí)間或判斷緩存為空時(shí)自動(dòng)更新)、1(主動(dòng)更新)] 
‘ isarr —- 所緩存的內(nèi)容是否為一個(gè)數(shù)據(jù)[0為字符串,1為數(shù)組] 
‘ timeinfo —- 緩存更新時(shí)間,單位為秒,當(dāng)值為0時(shí),則只在緩存為空時(shí),才更新 
dim domain = “cnzhaopin.com.cn” 
Dim temp_getconfig 
Dim re_getcache : re_getcache = False 
Dim temp_isarray_type : temp_isarray_type = False 
Dim Appfunsname : Appfunsname = Replace(Replace(Replace(funsname,”(”,”"),”)”,”"),”,”,”.”) 
If isarr = 1 Then temp_isarray_type = True 
If isreset = 1 Then re_getcache = True 
If isreset = 2 Then 
execute(”temp_getconfig=”&funsname) 
getcache = temp_getconfig 
Exit Function 
End If 
If Application(domain&”_”&Appfunsname&”_time”) = “” And timeinfo<>0 Then re_getcache = True 
If Not re_getcache Then 
If temp_isarray_type Then 
If Not IsArray(Application(domain&”_”&Appfunsname)) Then re_getcache = True 
Else 
If Application(domain&”_”&Appfunsname) = “” Then re_getcache = True 
End If 
End If 
If Not re_getcache And timeinfo<>0 Then 
If Int(DateDiff(”s”,Application(domain&”_”&Appfunsname&”_time”),now()))>timeinfo Then re_getcache = True 
End If 
If re_getcache Then 
execute(”temp_getconfig=”&funsname) 
Application.Lock 
Application(domain&”_”&Appfunsname) = temp_getconfig 
Application(domain&”_”&Appfunsname&”_time”) = Now() 
Application.UnLock 
Else 
temp_getconfig=Application(domain&”_”&Appfunsname) 
End If 
getcache = temp_getconfig 
End Function 



使用時(shí): 

復(fù)制代碼代碼如下:


Function output3 
output3=”" 
set newrs=conn.execute(”select TOP 60 companyname,comid,vipdata,ishot from company where isok=1 and vipqx>60 and vipqx<300 and vip=1 and comid in (select comid from jobs where zt<>1) order by newid()”) 
do while not newrs.eof 
output3=output3 & “……….” 
newrs.movenext 
loop 
newrs.close 
set newrs=nothing 
End function 
response.write getcache(”output3″,0,0,3600) 

延伸 · 閱讀

精彩推薦
Weibo Article 1 Weibo Article 2 Weibo Article 3 Weibo Article 4 Weibo Article 5 Weibo Article 6 Weibo Article 7 Weibo Article 8 Weibo Article 9 Weibo Article 10 Weibo Article 11 Weibo Article 12 Weibo Article 13 Weibo Article 14 Weibo Article 15 Weibo Article 16 Weibo Article 17 Weibo Article 18 Weibo Article 19 Weibo Article 20 Weibo Article 21 Weibo Article 22 Weibo Article 23 Weibo Article 24 Weibo Article 25 Weibo Article 26 Weibo Article 27 Weibo Article 28 Weibo Article 29 Weibo Article 30 Weibo Article 31 Weibo Article 32 Weibo Article 33 Weibo Article 34 Weibo Article 35 Weibo Article 36 Weibo Article 37 Weibo Article 38 Weibo Article 39 Weibo Article 40
主站蜘蛛池模板: 中文字幕第一页在线 | 寡妇激情毛片免费视频 | 影音先锋男| 91夜夜夜| 视频1区2区 | 国产精品a级 | 国产一区二区视频在线 | 九九热精品视频在线观看 | 这里只有精品视频在线 | 成人在线网站 | 中日韩免费视频 | 国产精品免费观看 | 91国视频| 久久精品中文 | 黄色大片网 | 国产精品99久久免费观看 | 影音先锋男 | 欧美亚洲| 成人免费视频网 | 伊人色综合网 | 精品国产欧美一区二区 | 日韩精品一区二区三区在线播放 | 精品在线| 色网综合| 色综合色综合网色综合 | 欧美精品久久一区 | 中国电影黄色一级片免费观看 | 国外成人在线视频 | 亚洲综合中文 | 99视频精品在线 | 亚洲欧美自拍视频 | 精品无码三级在线观看视频 | 国产精品久久久久久久久免费桃花 | 久久亚洲天堂 | 日韩欧美国产一区二区 | 国产精品一二三区视频 | 欧美电影在线观看网站 | 亚洲欧洲精品视频在线观看 | 久久国产精品视频 | 亚洲国产一区视频 | 国产激情一区二区三区 |