CacheSize (NotesViewNavigator - JavaScript)

Read-Write. The size of the navigator cache in view entries.

Defined in

NotesViewNavigator

Syntax

getCacheSize() : int

setCacheSize(numEntries:int) : void

Legal value

  • 0 minimum (no cache)
  • 128 maximum (default)

Examples

This beforePageLoad event creates a view navigator with no cache.
var nav1:NotesViewNavigator = database.getView("By category and date").createViewNav();
nav1.setCacheSize(0);