Skip to main content
Version: 3.27.2

CacheState.usable

The usable method of the CacheState interface returns true if the cached item is usable.

A cached item is usable if its age is less than the sum of the maxAge and staleWhileRevalidate periods.

Syntax

usable()

Parameters

None.

Return value

A boolean which represents whether a cached item is usable or not.