How to create a Storage type with Global format in Cache classes
Hi Guys,
I would like to know, how to setup a global structure in Cache classes storage type.
I want to set a global like below in Cache classes using Storage methods.
^A("ID1")="Name\Abb\Map"
^A("ID2")="Name\Abb\Map"
^A("ID3")="Name\Abb\Map"
...If any lead it would be appreciated.
Thanks,
Arun Kumar Durairaj.
Discussion (2)1
Comments
Use SET command:
set ^A("ID1")="Name\Abb\Map"
set ^A("ID2")="Name\Abb\Map"
set ^A("ID3")="Name\Abb\Map"Why do you want to set classes storage directly?
There is an excellent series of 5 articles from Brendan Bannon
The Art of Mapping Globals to Classes
https://community.intersystems.com/post/art-mapping-globals-classes-1-3
It tells you all details how to wrap existing globals into classes