Uploaded image for project: 'Lucee Development'
  1. LDEV-715

Ability to create a Cache Connection from Application.cfc

    Details

    • Type: Enhancement
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.1.22, 5.1.0.34
    • Labels:

      Description

      At the moment, you need to use the <cfadmin> tag to create a cache connection. But, like datasources, I would probably want per application cache connections to be created on the fly without having to log into the lucee admin or have to provide the admin password to the <cfadmin tag.

      something like (for RAM) :

      this.cache.connections["mycache"] = {
      	type: "ram",
      	storage: false,
      	timeToIdle: CreateTimeSpan(0,0,0,0),
      	timeToLive: CreateTimeSpan(0,0,0,0),
      	default: "object|template|query|resource|function|include|http|file|webservice"
      }
      

      Of course, most of the keys are interchangeable except, type, storage and default.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              cybersonic Mark Drew
            • Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: