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 calledcacheform.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" name="key"><br> <label for="value">Value</label> <input type="text" name="value"><br> <p><input type="submit...