Calling JDECACHE APIs

JDECHACHE APIs must be called in a certain order. This list defines the order in which the JDECACHE-related APIs must be called:

  1. Call JDB_InitBhvr.

  2. Create index or indices.

  3. Call jdeCacheInit, jdeCacheInitEx, jdeCacheInitMultipleIndex, or jdeCacheInitMultipleIndexEx.

  4. Call jdeCacheAdd.

  5. Call jdeCacheOpenCursor.

  6. Call JDECACHE Operations.

At JDECACHE Operations, the actual JDECACHE APIs can be called in any order. The operations in this list of JDECACHE operations can occur in any order:

  • jdeCacheFetch

  • jdeCacheOpenCursor (the second cursor)

  • jdeCacheFetchPosition

  • jdeCacheUpdate

  • jdeCacheDelete

  • jdeCacheDeleteAll

  • jdeCacheResetCursor

  • jdeCacheCloseCursor (if the second cursor is opened)

  • jdeCacheCloseCursor

  • jdeCacheTerminate

  • JDB_FreeBhvr