Jump to content

Global Variable type TDictionary


Mauri

Recommended Posts

we have a list of messages that are stored in the database and every time a message is triggered I make a query in the database. As this list changes very seldom we will read from the database at the time of initializing the IIS Server (We use ISAPI).

I would like to store all messages in a variable of type TDictionary, however I do not know if I can leave it in ServerModule? I was wondering if multiple sessions fetching at the same time this single variable in ServerModule can give some conflict or problem?

The idea would be to avoid having such a variable for each session and having only 1 for the system as a whole.

Does anyone have any experience with global variables in this regard?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...