Field caching
- Last UpdatedApr 24, 2025
- 1 minute read
The caching feature in the RealTimeField class is enabled by default, but you can disable it using the EnableCache property.
Whenever a RealTimeField object is bound with a table, the RealTimeField class retrieves field properties from the RealTime database (RTDB), which is an expensive operation. The RealTimeField class caches this information for a field of a table. For example, if you create a RealTimeField object for the curval field of the Analog table in one portion of a program, and later on you create a RealTimeField object for the same field, then the RealTimeField class will retrieve the field properties from the internal cache instead of from the database.