MCPcopy Index your code
hub / github.com/nodejs/node / get_cache_key

Method get_cache_key

deps/v8/third_party/jinja2/bccache.py:150–159  ·  view source on GitHub ↗

Returns the unique hash key for this template name.

(
        self, name: str, filename: t.Optional[t.Union[str]] = None
    )

Source from the content-addressed store, hash-verified

148 """
149
150 def get_cache_key(
151 self, name: str, filename: t.Optional[t.Union[str]] = None
152 ) -> str:
153 """Returns the unique hash key for this template name."""
154 hash = sha1(name.encode("utf-8"))
155
156 if filename is not None:
157 hash.update(f"|{filename}".encode())
158
159 return hash.hexdigest()
160
161 def get_source_checksum(self, source: str) -> str:
162 """Returns a checksum for the source."""

Callers 1

get_bucketMethod · 0.95

Calls 2

encodeMethod · 0.80
updateMethod · 0.65

Tested by

no test coverage detected