INNER CODE UNIT · JavaScript

Cache

pnxtech/hydra · lib/cache.js:7

class Cache {
  /**
  * @name constructor
  * @summary constructor
  * @return {undefined}
  */
  constructor() {
    this.data = {};
  }

  /**
  * @name put
  * @summary put a value in the cache
  * @param {string} key - key for value
  * @param {any} value - value associated with key
  * @param {number} expiration - expiration in seconds
  * @return {undefined}
  */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…