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:
<Railo Install>/webroot/Chapter_5folder, let's create a file called
cacheform.cfmand 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" ...