• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

"Application" level Arrays?

New Here ,
Jun 09, 2010 Jun 09, 2010

Copy link to clipboard

Copied

Hello,

I am using CF 8.  I am trying to find out if it is possible to make an array that is kept on the server, rather than the client.  There are a couple of reasons I want to do this.

First, I don't want to use a database table to keep the data, because it will be under heavy use, and will cause database exceptions when the resources are locked.

Two, I need a centralized location for the data, so that users from a variety of locations can access and update it.

Is an "application level array" possible in CF?

Many thanks,

Gary

TOPICS
Advanced techniques

Views

391

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jun 09, 2010 Jun 09, 2010

Copy link to clipboard

Copied

LATEST

Assuming you have properly set up applicaiton variables in the Administrator and an <cfapplication...> tag OR Application.cfc file.

<cfset application.myStruct = structNew()> should get you started.

Or I guess since you asked for an array.

<cfset application.myArray = arrayNew(1)>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation