function noUnsafeEval() {
    try {
      // eslint-disable-next-line no-new, no-new-func
      new Function('');
      return false;
    } catch (e) {
      return true;
    }
  }
@ngdoc method
@name $cacheFactory.Cache#put
@kind function

@description
Inserts a named entry into the {@link $cacheFactory.Cache Cache} object to be
retrieved later, and incrementing the size of the cache if the key was not already
present in the cache. If behaving like an LRU cache, it will also remove stale
entries from the set.

It will not insert undefined values into the cache.

@param {string} key the key under which the cached data is stored.
@param {*} value the value to store alongside the key. If it is undefined, the key
   will not be stored.
@returns {*} the value stored.