WapÁ÷Á¿Í³¼Æ¿ª·¢ÖÐʹÓÃCacheÐĵÃ
ÔÚ¡¶Ëû¾ËÍøwapÁ÷Á¿Í³¼Æ·ÖÎöƽ̨¡·¿ª·¢ÖÐΪÁËÌá¸ßϵͳµÄÐÔÄÜ£¬ÎÒÃÇÀûÓÃCacheÀ´±£´æÊý¾Ý£¬ÀýÈç°ÑÓû§µÄһЩȨÏÞÐÅÏ¢·ÅÔÚCacheÖУ¬µ«ÕâÑù×ö»áÓÐ
ЩÎÊÌ⣬ºÎʱÇå³ýCacheÓëÊý¾Ý±£³Öͬ²½£¬ÏÂÃæÎÒÔÚÏîÄ¿ÖÐʹÓÃCacheµÄÐĵã¬Óë´ó¼Ò·ÖÏí¡£
Ò»¡¢ÀûÓÃCacheDependency
Àà
¡¡¡¡ËüÔÚÃüÃû¿Õ¼äSystem.Web.CachingÖС£CacheDependencyÀà»áÓëÎļþÖ®¼ä½¨Á¢ÒÀ¸½ÐÔ¹Øϵ¡£ÔÚÎļþ¸ü¸Äʱ£¬¸Ã
CacheÏî»á×Ô¶¯ÒƳý¡£
·½·¨:
¡¡¡¡°ÑÓû§È¨ÏÞÐÅÏ¢±£Áô³ÉXMLÎļþ£¬µ±¹ÜÀíÔ±¸üÐÂÊý¾Ýʱ£¬Í¬Ê±¸üÐÂÕâ¸öXMLÎļþ¡£
´ú
Â룺
//CahceֵΪXMLÎļþÄÚÈÝ
XmlDocument doc = Cache["user"] as
XmlDocument;
if (doc == null)
{
doc = new XmlDocument();
string filePath =
Server.MapPath("user.xml");
¡¡¡¡//½¨Á¢ÒÀÀµÏî
CacheDependency c
= new CacheDependency(filePath);
doc.Load(filePath);
¡¡
¡¡//½¨Á¢ÒÀÀµ¹Øϵ
Cache.Insert("skin", doc, c
,Cache.NoAbsoluteExpiration
,TimeSpan.fromMinutes(30)
);
}
¶þ¡¢ÀûÓÃSqlCacheDependencyÀà
¡¡¡¡ËüÒ²ÔÚÃüÃû¿Õ¼ä
System.Web.CachingÖУ¬SqlCacheDependency»áÓëÊý¾Ý¿â±í»òSQL
Server²éѯ½á¹û½¨Á¢ÒÀÀµ¹Øϵ£¬ÕâÖÖ·½·¨²Ù×÷±È½Ï¸´ÔÓ¡£
²½¾Û1:
ÔÚWeb.ConfigÎļþÖÐÔö¼ÓÊý¾Ý¿âÁ¬½Ó´®ÓëCache
ÅäÖýڵ㡣
<configuration>
<appSettings/>
<connectionStrings>
<add name="connStr"
connectionString="server=192.168.1.24;uid=sa;pwd=l23;database=CacheTest;"/>
</connectionStrings>
<system.web>
<caching>
<sqlCacheDependency>
<databases>
<!--½ÚµãconnectionStringNamµÄÖµco
Ïà¹ØÎĵµ£º
ÊÖ»úÒªÖ§³Ösp½Ó¿Ú£¬¾ßÌåÊÇʲô²»ÖªµÀ
<a title="phone" href="wtai://wp/mc;010123456">010-123456</a>
<a href="sms:13112345678?body=·¢¶ÌÐÅ:[url]http://wap....[/url]">·¢¶ÌÐÅ</a>
http://www.thegatesnotes.com/ ......
ÔÚ¡¶Ëû¾ËÍøwapÁ÷Á¿Í³¼Æ·ÖÎöƽ̨¡·¿ª·¢ÖÐΪÁËÌá¸ßϵͳµÄÐÔÄÜ£¬ÎÒÃÇÀûÓÃCacheÀ´±£´æÊý¾Ý£¬ÀýÈç°ÑÓû§µÄһЩȨÏÞÐÅÏ¢·ÅÔÚCacheÖУ¬µ«ÕâÑù×ö»áÓÐЩÎÊÌ⣬ºÎʱÇå³ýCacheÓëÊý¾Ý±£³Öͬ²½£¬ÏÂÃæÎÒÔÚÏîÄ¿ÖÐʹÓÃCacheµÄÐĵã¬Óë´ó¼Ò·ÖÏí¡£
Ò»¡¢ÀûÓÃCacheDependencyÀà
¡¡¡¡ËüÔÚÃüÃû¿Õ¼äSystem.Web.CachingÖС£CacheDependencyÀà»áÓëÎ ......
ÈÈÏߣº021-51875830 62450161 0755-61280252
´«Õ棺021-62450161 0755-25912501
ÒµÎñÊÖ»ú:15921673576
ÏêÇéÇë·ÃÎÊÍøÕ¾£ºhttp://www.bjzhda.cn/
http://www.51qianru.cn
  ......
MIDP 1.0ÖÐûÓÐÌṩµç»°ºô½ÐµÄ¹¦ÄÜ¡£ÔÚMIDP 2.0ÖУ¬javax.microedition.midlet.MIDletÀàÌṩÁËplatformRequest()·½·¨À´ÇëÇóÉ豸À´Íê³ÉÌض¨µÄÇëÇó£¬ÇëÇóµÄÄÚÈÝÓÉplatformRequest()·½·¨µÄStringÀàÐ͵IJÎÊýurlÀ´±êʶ¡£¿ÉÄÜÊǵ÷ÓÃä¯ÀÀÆ÷´ò¿ªÄ³¸öÌض¨µÄwapÒ³Ã棬Ҳ¿ÉÒÔÊǺô½Ðµç»°¡£ÔÚÉ豸×ÊÔ´¿ÉÓõÄʱºò£¬ÏµÍ³»á°ÑMIDlet·ÅÔÚºǫ́ ......
ÖйúµçÐÅWap¡¢Net¡¢²ÊÐŲÎÊýÉèÖÃ
WAPÏà¹Ø²ÎÊý£¨Ð£©£º
APNºÅ£ºÁô¿Õ»òÈÎÒâÃüÃû£¬È绥ÁªÐÇ¿Õ
µç»°ºÅÂ룺#777
Óû§Ãû£ºctwap@mycdma.cn
ÃÜÂ룺vnet.mobi£¨»òwap¡¢wap2£©
WAP´úÀí·þÎñÆ÷10.0.0.200£º
HTTP 10.0.0.200:80
WAP 10.0.0.200:80
Wap protal£ºwap.vnet.mobi
»¥ÁªÍøÁ¬½Ó-InternetÉèÖãº
netÏà¹Ø²ÎÊý£º
APNº ......