|
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. When to use 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.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_ObjectRepository_saveImmediate_001
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types aGor The ObjectRepository which will be tested. ObjectRepository key The key value associated with the object. String value The value associated with the object. String
Returns:
Examples
Argument Types
ObjectRepository
Directory
String
How do I contact the AIS team?