Sets up the find cache timeout (in milliseconds).
Database
The DataFlex SQL Drivers (SQL Server, DB2 and ODBC), revision 5 and higher
Integer, temporary
Read/Write
0..
Use cli.pkg
Get_Attribute DF_DATABASE_FIND_CACHE_TIMEOUT of {driverNumber} {databaseHandle} to {IntegerVariable}
Set_Attribute DF_DATABASE_FIND_CACHE_TIMEOUT of {driverNumber} {databaseHandle} to {IntegerVariable}
Sets up the find cache timeout (in milliseconds). When the time between two find operations using the same cache is larger than the timeout, the driver will fetch data instead of reading from the cache. See Database cursors for more information.
Procedure ShowDBAttribute Integer iDriver Handle hDatabase
Integer iAttribValue
Get_Attribute DF_DATABASE_FIND_CACHE_TIMEOUT of iDriver hDatabase to iAttribValue
Showln "Find cache timeout: " iAttribValue
End_Procedure
The sample code above shows the current setting for a given database. The database handle can be obtained via the DF_DATABASE_ID attribute.