API Docs for:
Show:

UpdateConfig Class

Update consists into determine if there is a new version and then evolve the current cache to be up to date. To register an update algorithm you provide a UpdateImplementation instance by using use.

Item Index

Properties

Methods

check

()

Triggers the check algorithm of the registered update implementation.

evolve

()

Performs the evolve process of the registered update implementation.

isNewVersion

()

Calls the isNewVersion check of the registered update implementation.

option

(
  • optname
  • [value]
)
Any chainable

Gets or set an option.

Parameters:

  • optname String

    The name of the option to be set or get.

  • [value] Any optional

    If provided, the value to be set for the passed option.

Returns:

Any:

The value of the option when getting.

use

(
  • impl
)
chainable

Register the update implementation.

Parameters:

Properties

flags

UpdateFlags

Flags set at the beginning of the update process. They include: