| icName | input | character | The name of the cached integer type item for which the value needs to be stored in the cache. |
| iiValue | input | integer | The value of the cached integer data item with the name specified in icDataItemName, that needs to get stored in the cache. |
| iiSessionID | input | integer | ID of the session to which the data item belongs. Zero when the data item to store is not session dependent. |
| oiReturnStatus | output | integer | Return status of the method. |
BLF
if iiSessionID = 0
or iiSessionID = viCachedSessionID
then do:
find tCachedData where
tCachedData.tcName = icName and
tCachedData.tcDataType = "i"
no-error.
if not available tCachedData
then do :
create tCachedData.
assign tCachedData.tcName = icName
tCachedData.tcDataType = "i".
end.
assign tCachedData.tiIntValue = iiValue
tCachedData.tlSessionData = (iiSessionID <> 0).
end.