MCPcopy Create free account
hub / github.com/pyload/pyload / get_cache_key

Method get_cache_key

module/lib/jinja2/bccache.py:143–150  ·  view source on GitHub ↗

Returns the unique hash key for this template name.

(self, name, filename=None)

Source from the content-addressed store, hash-verified

141 """
142
143 def get_cache_key(self, name, filename=None):
144 """Returns the unique hash key for this template name."""
145 hash = sha1(name.encode('utf-8'))
146 if filename is not None:
147 if isinstance(filename, unicode):
148 filename = filename.encode('utf-8')
149 hash.update('|' + filename)
150 return hash.hexdigest()
151
152 def get_source_checksum(self, source):
153 """Returns a checksum for the source."""

Callers 1

get_bucketMethod · 0.95

Calls 3

hexdigestMethod · 0.80
encodeMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected