Skip to content

DF_DATABASE_FIND_CACHE_TIMEOUT

Sets up the find cache timeout (in milliseconds).

Level

Database

Supported by

The DataFlex SQL Drivers (SQL Server, DB2, and ODBC), revision 5 and higher.

Type

Integer, temporary.

Access

Read/Write.

Values

0..

Syntax

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}

Driver Configuration Keyword

Find_Cache_Timeout

Remarks

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.

Example

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.