saveImmediate
|
The saveImmediate function reads a value stored at the specified key, {key},
from the specified ObjectRepository {aGor} and stores the new value {value}
in the Repository Index. The Repository Index is simply a Directory, which is saved on the disk with the Object Repository. The keys
in the Repository Index normally map to a value which is a pointer to the location in the
disk file. Retrieving or Saving a value to the Object Repository is key driven and requires
two disk access: 1) Load the Repository Index into the Virtual Memory of the Analytic Information Server
Server. 2) Use the key and then the disk pointer associated with the key, read the value from
the disk. The saveImmediate function replaces the pointer value with the immediate value
from retrieved from the disk. Thus, if the Object Repository file is closed, the Repository
Index is saved in its modified state. If another Object Repository references causes the Object
Repository to be opened and the Repository Index to be loaded into virtual memory, the result of
the saveImmediate from the last reference is persists in the Repository Index. Usage The saveImmediate function should be used on values that are referenced many times
during an execution of an Lambda or function as it eliminates a disk access and will result in
optimized access times. The Repository Index will be dynamically resized to accommodate immediate
values and can grow to any size limited only by available virtual memory.
(saveImmediate aGor key value ) The Object Id of the Object Repository.
Expression:
Arguments
Name
Type
Description Argument: aGor ObjectRepository
The ObjectRepository which will be tested. Argument: key String
The key value associated with the object. Argument: value String
The value associated with the object.
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
ObjectRepository | Directory | String |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|