MCPcopy
hub / github.com/scality/cloudserver / getResult

Method getResult

lib/kms/Cache.js:11–19  ·  view source on GitHub ↗

* Retrieves the cached result with the last checked timestamp. * @returns {object|null} An object containing the result and lastChecked, or null if not set.

()

Source from the content-addressed store, hash-verified

9 * @returns {object|null} An object containing the result and lastChecked, or null if not set.
10 */
11 getResult() {
12 if (!this.result) {
13 return null;
14 }
15
16 return Object.assign({}, this.result, {
17 lastChecked: this.lastChecked ? new Date(this.lastChecked).toISOString() : null,
18 });
19 }
20
21 /**
22 * Retrieves the last checked timestamp.

Callers 2

checkHealthMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected