O'Reilly logo

Railo 3 Beginner’s Guide by Mark Drew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - getting well versed with more caching functions

So far, you have seen some simple examples. In the following example, we are going to make a form to which we can add items to our cache, see what is in the whole cache, and then delete individual items as well as the whole cache. Let's get started:

  1. In the <Railo Install>/webroot/Chapter_5 folder, let's create a file called cacheform.cfm and add the following code:
    <!DOCTYPE html> <html> <head> <title>cacheform</title> </head> <body> <cfparam name="FORM.key" default=""> <cfparam name="FORM.value" default=""> <cfparam name="URL.delete" default=""> <cfparam name="URL.deleteall" default="false"> <form action="cacheform.cfm" method="post"> <label for="key">Key</label> <input type="text" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required