lib/swig.js
function cacheSet(key, options, val) {
    if (shouldCache(options)) {
      return;
    }

    if (self.options.cache === 'memory') {
      self.cache[key] = val;
      return;
    }

    self.options.cache.set(key, val);
  }
function cacheSet(key, options, val) {
    if (shouldCache(options)) {
      return;
    }

    if (self.options.cache === 'memory') {
      self.cache[key] = val;
      return;
    }

    self.options.cache.set(key, val);
  }
function cacheSet ( key , options , val ) { if ( shouldCache ( options ) ) { return ; } if ( self . options . cache === 'memory' ) { self . cache [ key ] = val ; return ; } self . options . cache . set ( key , val ) ; }
Store a template in the cache.
@param  {string} key Name of template.
@param  {object} val Template function and tokens.
@return {undefined}
@private
Store a template in the cache .