MCPcopy
hub / github.com/julianshapiro/velocity / validateCache

Function validateCache

velocity.js:585–592  ·  view source on GitHub ↗

* Validate a cache option.

(value)

Source from the content-addressed store, hash-verified

583 * Validate a <code>cache</code> option.
584 */
585 function validateCache(value) {
586 if (isBoolean(value)) {
587 return value;
588 }
589 if (value != null) {
590 console.warn("VelocityJS: Trying to set 'cache' to an invalid value:", value);
591 }
592 }
593 /**
594 * Validate a <code>begin</code> option.
595 */

Callers 2

velocity.jsFile · 0.70
optionFunction · 0.70

Calls 1

isBooleanFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…