{"id":2359,"date":"2020-08-20T21:52:38","date_gmt":"2020-08-20T13:52:38","guid":{"rendered":"http:\/\/ufqi.com\/blog\/?p=2359"},"modified":"2020-08-21T18:05:34","modified_gmt":"2020-08-21T10:05:34","slug":"gwa2-updt-build-in-cache","status":"publish","type":"post","link":"https:\/\/ufqi.com\/blog\/gwa2-updt-build-in-cache\/","title":{"rendered":"GWA2\u5409\u5a03\u5154\ud83d\udc07\u5347\u7d1a\u57fa\u65bc\u4e8b\u4ef6\u9a45\u52d5\u7684\u7de9\u5b58\u8655\u7406\u6a21\u584a"},"content":{"rendered":"<p>\u6642\u9593\u904e\u5f97\u98db\u5feb\uff0c\u8ddd\u96e2\u4e0a\u6b21\u5347\u7d1a\u6539\u9032GWA2\u5409\u5a03\u5154\ud83d\udc07\u5df2\u7d93\u53c8\u4e09\u500b\u6708\u904e\u53bb\u4e86\u3002<a href=\"https:\/\/ufqi.com\/blog\/gwa2-updt-template-engine\/\">GWA2\u5409\u5a03\u5154\ud83d\udc07\u5347\u7ea7\u6a21\u677f\u5f15\u64ce\u5b50\u7cfb\u7edf<\/a>\uff08\u00a0<a href=\"https:\/\/ufqi.com\/blog\/gwa2-updt-template-engine\/\">https:\/\/ufqi.com\/blog\/gwa2-updt-template-engine\/<\/a> \uff09\u3002\u9019\u671f\u9593\uff0cGWA2\u4e00\u76f4\u5728\u9032\u884c\u7d30\u5fae\u6539\u9032\u5347\u7d1a\uff0c\u9019\u6b21\u8a18\u9304\u7684\u662f\u6539\u9032\u8f03\u5927\u7684\u4e00\u500b\u5730\u65b9\uff0c\u5c0d\u5185\u7f6eBuilt-in\u7684\u7de9\u5b58\u6a21\u584a\u9032\u884c\u4e86\u518d\u6b21\u512a\u5316\u3002\u5176\u4e2d\u7684\u7d30\u7bc0\u548c\u601d\u8003\u503c\u5f97\u5206\u4eab\uff0c\u5099\u5fd8\u65bc\u6b64\u3002<\/p>\n<p>GWA2\u5409\u5a03\u5154\ud83d\udc07\u81ea\u76f8\u61c9\u9ad4\u7cfb\u5275\u5efa\u4ee5\u4f86\uff0c\u82b1\u4e86\u5927\u91cf\u7684\u6642\u9593\u548c\u7cbe\u529b\u6301\u7e8c\u4e0d\u65b7\u5730\u63a8\u9032\u5275\u5efa\u201c\u66f4\u597d\u7684\u4e0b\u4e00\u500b\u7248\u672c\u201d\u3002\u95dc\u65bc\u7de9\u5b58\u76f8\u95dc\u7684\u6539\u9032\uff0c\u6709\u8a18\u9304\u53ef\u4ee5\u898b\u4e8e\u201c<a title=\"Permalink to GWA2-Java built-in cache with connection pool design\/\u5e26\u8fde\u63a5\u6c60\u7684\u7f13\u5b58\u6d41\u7a0b\u8bbe\u8ba1\" href=\"https:\/\/ufqi.com\/blog\/gwa2-java-built-in-cache-with-pool-flowchat\/\" rel=\"bookmark\">GWA2-Java built-in cache with connection pool design\/\u5e26\u8fde\u63a5\u6c60\u7684\u7f13\u5b58\u6d41\u7a0b\u8bbe\u8ba1<\/a>\uff08\u00a0https:\/\/ufqi.com\/blog\/gwa2-java-built-in-cache-with-pool-flowchat\/ \uff09\u201d\u3001\u201c<a title=\"Permalink to -GWA2 \u66f4\u65b0\u7f13\u5b58\u8c03\u7528built-in cache\u65b9\u6cd5\" href=\"https:\/\/ufqi.com\/blog\/gwa2-built-in-cache\/\" rel=\"bookmark\">-GWA2 \u66f4\u65b0\u7f13\u5b58\u8c03\u7528built-in cache\u65b9\u6cd5<\/a>\uff08\u00a0<a href=\"https:\/\/ufqi.com\/blog\/gwa2-built-in-cache\/\">https:\/\/ufqi.com\/blog\/gwa2-built-in-cache\/<\/a> \uff09\u201d\u3002<\/p>\n<p><img loading=\"lazy\" class=\"\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2016\/10\/gwa2-cache-201610.png\" width=\"556\" height=\"517\" \/><br \/><img loading=\"lazy\" class=\"\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2018\/08\/gwa2-java-built-in-cache.201808-1.png\" width=\"579\" height=\"480\" \/><br \/>\u57161. GWA2\u5409\u5a03\u5154\u5185\u7f6e\u7de9\u5b58\u6a5f\u5236<\/p>\n<p>\u9019\u4e9b\u52aa\u529b\u90fd\u662f\u5e0c\u671b\u57fa\u65bcGWA2\u7684\u61c9\u7528\u7cfb\u7d71\u8dd1\u5f97\u5feb\u4e9b\uff0c\u518d\u5feb\u4e9b\uff01\u5f85\u5230\u9032\u884c\u5230\u67d0\u7a2e\u6975\u7dfb\u7684\u72c0\u614b\u6642\uff0c\u5f80\u5f80\u9762\u81e8\u7684\u662f\u67d0\u7a2e\u6b0a\u8861\u548c\u53d6\u6368\u3002\u6bd4\u5982\u7de9\u5b58\u529f\u80fd\uff0c\u5982\u679c\u8a2a\u554f\u901f\u5ea6\u66f4\u5feb\uff0c\u5247\u9810\u671f\u7684\u7de9\u5b58\u6642\u9593\u8d8a\u9577\uff0c\u66f4\u65b0\u983b\u6b21\u8d8a\u4f4e\u3002\u800c\u5c0d\u65bc\u67d0\u4e9b\u6539\u52d5\uff0c\u53c8\u9700\u8981\u7acb\u5373\u66f4\u65b0\uff0c\u9019\u5c31\u9700\u8981\u505a\u51fa\u67d0\u7a2e\u5e73\u8861\u548c\u4e0d\u540c\u512a\u5148\u7d1a\u7684\u8003\u616e\u3002\u6709\u4e9b\u7cfb\u7d71\u53ef\u4ee5\u5141\u8a31\u7de9\u5b58\u4e00\u5b9a\u6642\u9593\u518d\u5c07\u6539\u52d5\u63d0\u5230\u5230\u524d\u7aef\u7cfb\u7d71\uff0c\u6709\u4e9b\u7cfb\u7d71\u5247\u5c0d\u5be6\u6642\u6027\u8981\u6c42\u8f03\u9ad8\uff0c\u4e0d\u5141\u8a31\u6709\u7247\u523b\u7684\u7de9\u5b58\u3002<\/p>\n<p>\u9019\u6a23\u7e3d\u9ad4\u8003\u616e\uff0c\u5927\u81f4\u662f\u4e09\u7a2e\u60c5\u6cc1\uff1a1\uff09\u5168\u90e8\u7528\u7de9\u5b58\uff0c\u6578\u64da\u66f4\u65b0\u53ca\u6642\u6027\u6b21\u7d1a\u8003\u616e\uff0c2\uff09\u5168\u90e8\u4e0d\u7528\u7de9\u5b58\u6578\u64da\u5373\u6642\u66f4\u65b0\uff0c\u7cfb\u7d71\u6548\u80fd\u6b21\u7d1a\u8003\u616e\uff0c3\uff09\u90e8\u5206\u67e5\u8a62\u7528\u7de9\u5b58\uff0c\u5e73\u8861\u7cfb\u7d71\u6548\u80fd\u548c\u6578\u64da\u53ca\u6642\u6027\u3002<br \/><a href=\"https:\/\/ufqi.com\/dev\/gmis\/\">gMIS\u5409\u5bc6\u65af<\/a>\u00a0(\u00a0https:\/\/ufqi.com\/dev\/gmis\/ ) \u4f5c\u7232 GWA2\u5409\u5a03\u5154\u7684\u4e00\u500b\u61c9\u7528\u5be6\u4f8b\uff0c\u5c31\u662f\u4f7f\u75283\uff09\u65b9\u5f0f\uff0c\u90e8\u5206\u67e5\u8a62\u4f7f\u7528\u7de9\u5b58\uff0c\u53e6\u5916\u4e00\u90e8\u5206\u5b8c\u5168\u4e0d\u4f7f\u7528\u7de9\u5b58\uff0c\u9019\u6a23\u5728\u7cfb\u7d71\u6548\u80fd\u548c\u6578\u64da\u53ca\u6642\u6027\u4e4b\u9593\u505atradeoff. \u6bd4\u5982gMIS\u7ba1\u7406\u6240\u8a2a\u554f\u7684\u7576\u524d\u6578\u64da\u8868\u4e0d\u4f7f\u7528\u7de9\u5b58\uff0c\u6578\u64da\u53ca\u6642\u6027\u5f97\u5230\u4fdd\u8b49\uff0c\u800c\u4e00\u4e9b\u516c\u5171\u83dc\u55ae\u3001\u6b0a\u9650\u6aa2\u67e5\u7b49\u5247\u4f7f\u7528\u4e86\u7de9\u5b58\uff0c\u66f4\u65b0\u7121\u6cd5\u7acb\u5373\u751f\u6548\uff0c\u9700\u7b49\u5f85\u4e00\u500b\u7de9\u5b58\u5931\u6548\u7684\u5468\u671f\u3002<\/p>\n<p>\u6709\u6c92\u6709\u4e00\u7a2e\u6a5f\u5236\u5c07\u9019\u7a2e\u5be6\u6642\u6027\u5340\u5206\u958b\u4f86\uff08\u7b2c4\u7a2e\u60c5\u6cc1\uff1a\u5168\u90e8\u4f7f\u7528\u7de9\u5b58\u800c\u53c8\u80fd\u4fdd\u8b49\u6578\u64da\u7684\u53ca\u6642\u6027\uff0c \u65e2&#8230;.\u53c8&#8230;.?\uff09\uff1f\u5105\u5141\u8a31\u7de9\u5b58\u6642\uff0c\u4f7f\u7528\u9ed8\u8a8d\u7684\u7de9\u5b58\u6a5f\u5236\uff0c\u5c07\u6578\u64da\u7de9\u5b58\u8d77\u4f86\uff0c\u4ee5\u6b64\u4f86\u63d0\u5347\u7cfb\u7d71\u97ff\u61c9\u901f\u5ea6\uff1b\u5105\u9700\u8981\u5be6\u6642\u6027\u6642\uff0c\u5247\u7acb\u5373\u9032\u884c\u76f8\u95dc\u6578\u64da\u7684\u66f4\u65b0\u3002\u7d93\u904e\u4e00\u756a\u63a2\u7d22\uff0c\u6211\u5011\u91c7\u7528\u4e8b\u4ef6\u9a45\u52d5\u6a5f\u5236\uff0c\u589e\u52a0\u4e86\u5c0d\u9019\u4e9b\u8a2d\u60f3\u7684\u5de5\u7a0b\u5be6\u73fe\u3002\u5176\u5927\u81f4\u601d\u8def\u6642\uff0c\u5105\u7528\u6236\u767c\u8d77\u5c0d\u7cfb\u7d71\u7684\u5beb\u5165\u3001\u66f4\u65b0\u64cd\u4f5c\u6642\uff0c\u5728\u66f4\u65b0\u7cfb\u7d71\u5c0d\u8c61\u72c0\u614b\u6642\uff0c\u5373\u523b\u89f8\u767c\u5c0d\u7de9\u5b58\u7684\u66f4\u65b0\uff0c\u5f9e\u800c\u5be6\u73fe\u4e86\u6309\u9700\u66f4\u65b0\u60f3\u8981\u7de9\u5b58\u7684\u76ee\u6a19\uff0c\u8b93\u7de9\u5b58\u6578\u64da\u8207\u7cfb\u7d71\u5c0d\u8c61\u771f\u5be6\u72c0\u614b\u4fdd\u6301\u9ad8\u5ea6\u4e00\u81f4\u6027\u3001\u540c\u6b65\u6027\u3002\u9019\u4e9b\u6539\u9032\u5305\u62ec\u5982\u4e0b\u5169\u500b\u5730\u65b9\u3002<\/p>\n<p><strong>1. \u6539\u9032\u9802\u7d1a\u985e inc\/WebApp,rmBy \u65b9\u6cd5\u7684\u5be6\u73fe<\/strong><\/p>\n<p>\u6539\u9020\u4e4b\u524d\uff0cinc\/WebApp.rmBy \u7684\u64cd\u4f5c\u53ea\u652f\u6301\u91dd\u5c0d\u6578\u64da\u5eab\u63a5\u53e3\u7684\u522a\u9664\u64cd\u4f5c\u3002\u9019\u6b21\u6539\u9032\u4e4b\u5f8c\uff0cinc\/WebApp.rmBy \u5c07\u652f\u6301\u5f62\u5982 &#8220;cache:keyString&#8221; \u7684\u53c3\u6578\u5b9a\u7fa9\uff0c\u5105\u63a5\u6536\u5230\u9019\u6a23\u7684\u53c3\u6578\u6642\uff0c\u89f8\u767c\u5c0d\u76f8\u61c9\u7684\u7de9\u5b58\u7684\u522a\u9664\u3002<\/p>\n<p>\u7de9\u5b58\u522a\u9664\u64cd\u4f5c\u901a\u904e inc\/Cachea \u63a5\u7ba1\u540e\u6548\u7528\u76f8\u61c9\u7684\u7de9\u5b58\u9a45\u52d5\uff0c\u9032\u800c\u5be6\u73fe\u5c0d\u7de9\u5b58\u7684\u522a\u9664\u3001\u66f4\u65b0\u64cd\u4f5c\u3002\u4e5f\u5373\uff0c\u901a\u904e\u6539\u9032 inc\/WebApp.rmBy , \u8abf\u7528 inc\/WebApp.writeObject , \u901a\u904e\u5beb\u5165\u4e00\u500b\u6c92\u6709\u7de9\u5b58\u503c\u7684\u5c0d\u8c61\u4f86\u767c\u8d77\u5c0d\u7576\u524d\u7de9\u5b58\u7684\u66f4\u65b0\u3002\u9019\u4e00\u6d41\u7a0b\u4e2d\u6578\u64da\u7684\u6d41\u8f49\u5927\u81f4\u5982\u4e0b\u3002<\/p>\n<p>&#8230;. &#8211;&gt; mod\/ObjectInstance.setBy(execBy) &#8211;&gt; inc\/WebApp.rmBy <br \/>&#8211;&gt; inc\/WebApp.writeObject &#8211;&gt; inc\/Cachea.rm <br \/>&#8211;&gt; inc\/Memcached.rm &#8211;&gt; &#8230;<br \/>\u57162. GWA2 \u7de9\u5b58\u522a\u9664\u64cd\u4f5c<\/p>\n<p>\u76f8\u61c9\u5730\uff0c\u4e0d\u4f46\u53ef\u4ee5\u5728 inc\/WebApp \u4e2d\u901a\u904e rmBy(&#8220;cache:keyString&#8221;) \u7684\u5f62\u5f0f\u8abf\u7528\u91dd\u5c0d\u7de9\u5b58\u7684\u6e05\u7406\uff0c\u4e5f\u53ef\u4ee5\u5728\u4efb\u4f55\u7e7c\u627f\u6216\u5be6\u73fe\u4e86 inc\/WebApp \u7684\u985e\u4e2d\u8abf\u7528\u8a72\u65b9\u6cd5\uff0c\u5be6\u73fe\u5c0d\u7de9\u5b58\u7684\u66f4\u7cbe\u6e96\u7684\u63a7\u5236\u3002\u6bd4\u5982\u901a\u904e\u57162. \u5be6\u73fe\u4e86\u5c0d\u55ae\u689d\u6578\u64da\u8a18\u9304\u5b57\u6bb5\u7d1a\u7684\u66f4\u65b0\u6642\u540c\u6b65\u66f4\u65b0\u7de9\u5b58\u7684\u64cd\u4f5c\uff0c\u5982\u679c\u91dd\u5c0d\u4e00\u500b\u5177\u6709\u591a\u689d\u6578\u64da\u96c6\u7684\u64cd\u4f5c\uff0c\u8a72\u5982\u4f55\u540c\u6b65\u9032\u884c\u7de9\u5b58\u66f4\u65b0\u64cd\u4f5c\uff1f<\/p>\n<p>\u986f\u7136\u5730\uff0c\u9700\u8981\u5728\u63a7\u5236\u5668\u4e2d\uff0c\u986f\u793a\u5730\u8abf\u7528 mod\/ObjectInstance.rmBy(&#8220;cache:keyString&#8221;) \u7684\u65b9\u6cd5\u4f86\u6e05\u7a7a\u6240\u6d89\u53ca\u5230\u7684\u7de9\u5b58\u5c0d\u8c61\u3002\u9019\u662f\u8d85\u51fa\u5185\u7f6e\u7de9\u5b58\u7684\u7bc4\u7587\uff0c\u9700\u8981\u5177\u9ad4\u554f\u984c\u5177\u9ad4\u5206\u6790\u9032\u884c\uff0c\u5c24\u5176\u662f\u6bcf\u500bcache\u7684key\u4e0d\u540c\u6642\uff0c\u5982\u679c\u6709\u591a\u689dcache\u9700\u6c42\u66f4\u65b0\uff0c\u9084\u9700\u8981\u591a\u6b21\u8abf\u7528 rmBy(&#8220;cache:anotherKeyString&#8221;) .<\/p>\n<p><strong>2. \u512a\u5316\u66f4\u65b0\u64cd\u4f5c\u6642\u89f8\u767c\u7de9\u5b58\u64cd\u4f5c<\/strong><\/p>\n<p>\u5728\u6b64\u4e4b\u524d\uff0c\u6309\u57161.\u7684\u6a19\u5fd7\uff0c\u5185\u7f6e\u7de9\u5b58\u53ea\u5728\u6578\u64da\u5c0d\u8c61\u8b80\u53d6\u6642\u767c\u751f\u4f5c\u7528\uff0c\u4e5f\u5373\u5728 inc\/WebApp.getBy\/execBy \u6642\u751f\u6548\uff0c\u5c0d\u65bc\u5beb\u5165\u3001\u66f4\u65b0\u64cd\u4f5c inc\/WebApp.setBy\/execBy \u6642\uff0c\u7121\u9700\u8abf\u7528\u76f8\u61c9\u7684\u7de9\u5b58\u529f\u80fd\u6a21\u584a\uff0c\u56e0\u7232\u5beb\u5165\u6578\u64da\u7121\u9700\u9032\u884c\u7de9\u5b58\u3002<\/p>\n<p>\u5e36\u4e0a\u958b\u7bc7\u63d0\u5230\u7684\u554f\u984c\uff0c\u5105\u6211\u5011\u9700\u8981\u5728\u5beb\u5165\u3001\u66f4\u65b0\u64cd\u4f5c\u6642\u9032\u884c\u7de9\u5b58\u66f4\u65b0\u6642\uff0c\u91c7\u7528\u4e8b\u4ef6\u9a45\u52d5\u6a21\u5f0f\u9032\u884c\u76f8\u61c9\u64cd\u4f5c\u6642\uff0c\u9700\u8981\u5728\u5beb\u5165\u3001\u66f4\u65b0\u64cd\u4f5c inc\/WebApp.setBy\/execBy \u8003\u616e\u4e00\u4e0b\u7de9\u5b58\u3002\u53ea\u4e0d\u904e\u9019\u6642\u5019\u8003\u616e\u7de9\u5b58\uff0c\u4e0d\u662f\u5beb\u5165\u7de9\u5b58\uff0c\u800c\u662f\u4e5f\u540c\u6b65\u201c\u66f4\u65b0\u7de9\u5b58\u201d\u3002\u5177\u9ad4\u7684\u6539\u9032\u5305\u62ec\u5982\u4e0b\u5169\u9805\u3002<\/p>\n<p><strong>2.1. \u6539\u9032 inc\/WebApp.setBy<\/strong><\/p>\n<p>inc\/WebApp.setBy \u6b64\u524d\u7684\u65b9\u6cd5\u4e2d\uff0c\u652f\u6301\u7b2c\u4e09\u500b\u53c3\u6578 HashMap args \u5f62\u5f0f\uff0c\u5176\u4e3b\u8981\u529f\u80fd\u662f\u8003\u616e\u9700\u8981\u5beb\u5165\u975e\u6578\u64da\u5eab\u6642\u7684\u9700\u6c42\u3002\u6bd4\u5982\u5beb\u5165\u7de9\u5b58\u7cfb\u7d71\uff0c\u5beb\u5165\u6587\u4ef6\u7cfb\u7d71\u7b49\uff0c\u5105\u6709\u9019\u4e9b\u767c\u751f\u6642\uff0c\u9700\u6c42\u88ab\u9032\u4e00\u6b65\u5730\u524d\u50b3\u7d66 inc\/writeObject .<\/p>\n<p>\u63a5\u8457\u9019\u500b\u53ef\u64f4\u5c55\u7684\u6a5f\u5236\uff0c\u6211\u5011\u53ef\u4ee5\u5728\u5beb\u5165\u6578\u64da\u5eab\u6642\uff0c\u4e5f\u901a\u904e args \u5e36\u5165\u9700\u8981\u66f4\u65b0\u7684\u7de9\u5b58keyString, \u5105\u5b8c\u6210\u4e86\u76f8\u61c9\u7684\u5beb\u5165\u6578\u64da\u5eab\u7684\u64cd\u4f5c\u6642\uff0c\u76f8\u61c9\u5730\u767c\u8d77\u5c0d\u7de9\u5b58\u7684\u66f4\u65b0\u64cd\u4f5c\u3002\u5176\u6d41\u7a0b\u8207\u57162.\u63cf\u8ff0\u76f8\u540c\u3002<\/p>\n<p><strong>2.2. \u6539\u9032 inc\/WebApp.execBy\u00a0<\/strong><\/p>\n<p>inc\/WebApp.execBy \u7684\u60c5\u6cc1\u7a0d\u5fae\u8907\u96dc\u4e00\u4e9b\u3002\u5728\u76ee\u524d\u7684\u8a2d\u8a08\u4e2d\uff0cinc\/WebApp.execBy \u662f\u70ba\u4e86\u6eff\u8db3\u4e00\u4e9b\u7279\u5b9a\u7684SQL\u67e5\u8a62\u8a9e\u53e5\uff0c\u5105\u6211\u5011\u7121\u6cd5\u901a\u904e getBy\/setBy \u5be6\u73fe\u76ee\u6a19SQL\u67e5\u8a62\u6642\uff0cexecBy \u5c31\u88ab\u6392\u4e0a\u7528\u5834\u3002\u4ed6\u751a\u81f3\u53ef\u4ee5\u66ff\u4ee3 getBy\/setBy \uff08 \u5728\u67d0\u4e9bGWA2\u7684\u65b0\u624b\uff0c\u6216\u8005\u7c21\u55ae\u61c9\u7528\u4e2d\uff0c\u958b\u767c\u8005\u751a\u81f3\u53ea\u7528\u9019\u4e00\u7a2e\u65b9\u6cd5\u5373\u53ef\u5b8c\u6210\u8207\u6578\u64da\u5eab\u7684\u5168\u90e8\u8b80\u5beb\u64cd\u4f5c \uff09 \uff0c\u56e0\u800c\u9700\u8981\u8003\u616e execBy \u7684\u8b80\u53d6\u548c\u5beb\u5165\u5169\u7a2e\u60c5\u6cc1\u3002<\/p>\n<p>\u5105 execBy \u57f7\u884c\u8b80\u53d6\u64cd\u4f5c\u6642\uff0c\u5176\u7b2c\u4e09\u500b\u53c3\u6578 HashMap args \u672c\u8eab\u5c31\u5e36\u6709 cache keyString \u7684\u53c3\u6578\uff0c\u610f\u5728\u7528\u65bc\u5105\u8b80\u53d6\u6210\u529f\u6642\uff0c\u901a\u904e\u9019\u500bcache keyString \u5c07\u67e5\u8a62\u7d50\u679c\u7de9\u5b58\u8d77\u4f86\uff0c\u4e0b\u6b21\u518d\u6709\u985e\u4f3c\u67e5\u8a62\u6642\uff0c\u512a\u5148\u4e3b\u52d5\u4f7f\u7528\u7de9\u5b58\u6578\u64da\u3002\u9019\u4e5f\u662f \u57161. \u6211\u5011\u7684\u5185\u7f6e\u7de9\u5b58\u7684\u904b\u884c\u6a5f\u5236\u3002<\/p>\n<p>\u73fe\u5728\u6211\u5011\u9700\u8981\u66f4\u591a\u5730\u8003\u616e\u4e00\u5c64\uff0c\u5105 execBy \u57f7\u884c\u5beb\u5165\u3001\u66f4\u65b0\u64cd\u4f5c\u6642\uff0c\u5105\u5b8c\u6210\u76f8\u61c9\u7684\u64cd\u4f5c\u540e\uff0c\u9700\u8981\u9032\u4e00\u6b65\u5730\u8003\u5bdf args \u4e2d\u7684 cache keyString \u53c3\u6578\uff0c\u5982\u679c\u7d66\u5b9a\u4e86\u76f8\u61c9\u7684cache keyString\uff0c\u5247\u6211\u5011\u8a8d\u7232\u9019\u662f\u9700\u8981\u540c\u6b65\u89f8\u767c\u66f4\u65b0\u7de9\u5b58\u7684\u64cd\u4f5c\uff0c\u65bc\u662f\u5c31\u9032\u4e00\u6b65\u5730\u547c\u53eb inc\/WebApp.rm(&#8220;cache:keyString&#8221;) , \u540c\u6b65\u5b8c\u6210\u5c0d\u7de9\u5b58\u7684\u66f4\u65b0\u3002<\/p>\n<p>\u53ea\u662f\uff0c\u9019\u88cf\u5982\u679c\u662f\u901a\u904e execBy \u767c\u8d77\u5c0d\u975e\u6578\u64da\u5eab\u7684\u64cd\u4f5c\u5462\uff1f \u6bd4\u5982\uff0c\u901a\u904e execBy \u767c\u8d77\u5c0d \u7de9\u5b58\u7cfb\u7d71\uff0c\u6587\u4ef6\u7cfb\u7d71\u7684\u64cd\u4f5c\u5462\uff1f \u76ee\u524d\u9084\u6c92\u6709\u9019\u65b9\u9762\u7684\u9700\u6c42\uff0c\u4e0d\u904e\u7684\u78ba\u662f\u9700\u8981\u518d\u8003\u616e\u7684\u4e8b\u60c5\u3002@todo .<\/p>\n<hr \/>\n<p><img loading=\"lazy\" class=\"\" src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2020\/08\/gwa2-logo-202005.v3.png\" width=\"208\" height=\"208\" \/><\/p>\n<p><a href=\"https:\/\/ufqi.com\/dev\/gwa2\/\">-GWA2 \u5409\u5a03\u5154<\/a> \u662f\u201d\u901a\u7528\u7f51\u7edc\u5e94\u7528\u67b6\u6784( General Web Application Architeture,\u00a0https:\/\/ufqi.com\/dev\/gwa2\/ )\u201d\uff0c\u57fa\u4e8e -GWA2 \u53ef\u4ee5\u8f7b\u4fbf\u6784\u5efa\u5404\u79cd\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f,<br \/>\u5305\u62ec\u590d\u6742\u7684\u5728\u7ebf\u8d2d\u7269\u5546\u57ce\u3001\u5728\u7ebf\u533b\u7597\u3001\u5728\u7ebf\u6559\u80b2\u3001 \u65c5\u6e38\u4ea4\u6613\u5e73\u53f0\u3001\u793e\u7fa4\u6216\u8005\u793e\u4ea4\u7f51\u7ad9\u548c\u65b0\u95fb\u8d44\u8baf\u7f51\u7ad9\u7b49\uff0c<br \/>\u4e5f\u5305\u62ec\u5404\u79cd\u4f01\u4e8b\u4e1a\u5355\u4f4d\u7f51\u4e0a\u95e8\u6237\uff0c\u5728\u7ebf\u4ea4\u4e92\u53ca\u670d\u52a1\u4f5c\u4e1a\u7cfb\u7edf\u7b49.<br \/>\u8fd8\u53ef\u4ee5\u5305\u62ec\u4e3aNativeApp\u505a\u670d\u52a1\u5668\u7aef\u652f\u6301, \u751a\u81f3\u662fWebApp\u7684\u5168\u90e8.<br \/>-GWA2 \u662f\u4e3a\u6570\u4e0d\u591a\u7684\u652f\u6301\u8de8\u5f00\u53d1\u8bed\u8a00\u7684\u5e94\u7528\u6846\u67b6\uff0c\u76ee\u524d\u652f\u6301 -Java, -PHP, -Perl, -Aspx and -Python .<\/p>\n<p>-GWA2 is a \u201cGeneral Web Application Architecture\u201d and based on -GWA2 developers can easily build a variety of network applications,<br \/>including complex online shopping malls, online medical services, online teaching, travel trading platforms, community or social networking sites and news information sites, etc.<br \/>Also the applications include various online portals of enterprises and institutions, online interaction and service operations systems.<br \/>Moreover it contains server-side support for NativeApp, or even all of the WebApp.<br \/>-GWA2 is one of the web frameworks which provide cross-language support for -Java, -PHP, -Perl, -Aspx and -Python at present.<\/p>\n<p><strong>-GWA2 is E.A.S.Y\u00a0<\/strong><br \/><b>Easy Along, Swift Yield<br \/><\/b>\u8f7b\u677e\u542f\u52a8, \u5feb\u901f\u4ea7\u51fa.<\/p>\n<hr \/>\n<p>GWA2\u5409\u5a03\u5154 \u57fa\u65bc\u4e8b\u4ef6\u9a45\u52d5\u7684\u7de9\u5b58\u8655\u7406\u6a5f\u5236\u5df2\u7d93\u5728 <a href=\"https:\/\/ufqi.com\/work\/\">\u6709\u798f\u5de5\u574aUfqiWork <\/a>\uff08 https:\/\/ufqi.com\/work\/ \uff09\u4e0a\u5f97\u5230\u90e8\u7f72\u61c9\u7528\u3002<\/p>\n<p><img loading=\"lazy\" class=\"\" src=\"https:\/\/ufqi.com\/view\/default\/images\/ufqiwork-logo.png\" alt=\"ufqiwork-logo\" width=\"111\" height=\"111\" \/><br \/>\u6709\u798f\u5de5\u574aUfqiWork \u662f\u4e00\u4e2a\u5728\u7ebf\u670d\u52a1\u4ea4\u6613\u5e73\u53f0\u3002<br \/>\u6709\u798f\u5de5\u574a\u63d0\u4f9b\u5728\u7ebf\u5206\u7c7b\u670d\u52a1\u4fe1\u606f\uff0c\u81f4\u529b\u4e8e\u5728\u7ebf\u64ae\u5408\u670d\u52a1\u4ea4\u6613\u7684\u4e70\u65b9\u548c\u5356\u65b9\uff0c\u5e76\u4e3a\u4e70\u65b9\u3001\u5356\u65b9\u63d0\u4f9b\u201c\u884c\u51c6\u201d\u670d\u52a1\uff0c\u5c45\u95f4\u62c5\u4fdd\u670d\u52a1\u4ea4\u6613\u3002\u884c\u51c6\u670d\u52a1\u7684\u63d0\u4f9b\u65b9\u4e3a\u5c45\u95f4\u4ea4\u6613\u7684\u7b2c\u4e09\u65b9\u3002\u6709\u798f\u5de5\u574a\u7684\u670d\u52a1\u4ea4\u6613\u5e73\u53f0\u4e3a\u6574\u4e2a\u670d\u52a1\u4ea4\u6613\u6d41\u7a0b\u7684\u7b2c\u56db\u65b9\u3002<\/p>\n<p><b><a class=\"bigfont\" href=\"https:\/\/ufqi.com\/naturedns\/search?q=-R\/B2SU\" target=\"_blank\">-R\/B2SU<br \/>https:\/\/ufqi.com\/blog\/gwa2-updt-build-in-cache\/<\/p>\n<p><\/a><\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6642\u9593\u904e\u5f97\u98db\u5feb\uff0c\u8ddd\u96e2\u4e0a\u6b21\u5347\u7d1a\u6539\u9032GWA2\u5409\u5a03\u5154\ud83d\udc07\u5df2\u7d93\u53c8\u4e09\u500b\u6708\u904e\u53bb\u4e86\u3002GWA2\u5409\u5a03\u5154 &hellip; <a href=\"https:\/\/ufqi.com\/blog\/gwa2-updt-build-in-cache\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[42,7,6,2],"tags":[162,86,152,376],"_links":{"self":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2359"}],"collection":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/comments?post=2359"}],"version-history":[{"count":12,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2359\/revisions"}],"predecessor-version":[{"id":2372,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2359\/revisions\/2372"}],"wp:attachment":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media?parent=2359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/categories?post=2359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/tags?post=2359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}