get_cache_key.js 218 B

1234567
  1. var crypto = require('crypto')
  2. module.exports = function getCacheKey (fileData, filename, configString) {
  3. return crypto.createHash('md5')
  4. .update(fileData + filename + configString, 'utf8')
  5. .digest('hex')
  6. }