{"id":252,"date":"2003-02-04T01:45:41","date_gmt":"2003-02-04T05:45:41","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=252"},"modified":"2003-02-04T01:45:41","modified_gmt":"2003-02-04T05:45:41","slug":"cache-instances-of-objects-in-a-web-application","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2003\/02\/04\/cache-instances-of-objects-in-a-web-application\/","title":{"rendered":"cache instances of objects in a web application"},"content":{"rendered":"<p>I&#8217;m (perennially) working on karensrecipes.com tonight, putting the final touches on the application.  I&#8217;d running into a couple places on the site where performance is not so good so I&#8217;d like to start caching objects, presumably in the servlet container. I&#8217;m looking for &#8216;the way&#8217; to cache <i>instances<\/i> of objects in a web application. I found this <a href=\"http:\/\/www.javaworld.com\/javaworld\/jw-06-1999\/jw-06-cooltools.html\">article<\/a> on JavaWorld.com, which seems promising, but doesn&#8217;t relate caching to a servlet container.  Would you just place the <a href=\"http:\/\/java.sun.com\/j2se\/1.4\/docs\/api\/java\/util\/Hashtable.html\">hashtable<\/a> in the <a href=\"http:\/\/java.sun.com\/webservices\/docs\/ea2\/api\/javax\/servlet\/ServletContext.html\">ServletContext<\/a> using <a href=\"http:\/\/java.sun.com\/webservices\/docs\/ea2\/api\/javax\/servlet\/ServletContext.html#setAttribute(java.lang.String,%20java.lang.Object)\">setAttribute()<\/a>?<\/p>\n<p><a href=\"http:\/\/www.jcp.org\/en\/jsr\/detail?id=107\">JCACHE &#8211; Java Temporary Caching API<\/a> looks promising as well, although I don&#8217;t see where JCACHE lives.. anyone else know if JCACHE is alive and well?<\/p>\n<p>I remember going to a presentation on caching at JavaOne last year, one of the presentations was on <a href=\"http:\/\/www.edge-delivery.org\/\">ESI<\/a>, but of course, they have nothing to download on that site, so it&#8217;s worthless.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m (perennially) working on karensrecipes.com tonight, putting the final touches on the application. I&#8217;d running into a couple places on the site where performance is not so good so I&#8217;d like to start caching objects, presumably in the servlet container. I&#8217;m looking for &#8216;the way&#8217; to cache instances of objects in a web application. I &hellip; <a href=\"https:\/\/cephas.net\/blog\/2003\/02\/04\/cache-instances-of-objects-in-a-web-application\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">cache instances of objects in a web application<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/252"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}