MCPcopy Index your code
hub / github.com/borgbackup/borg / format_needs_cache

Method format_needs_cache

src/borg/helpers/parseformat.py:1011–1013  ·  view source on GitHub ↗
(cls, format)

Source from the content-addressed store, hash-verified

1009
1010 @classmethod
1011 def format_needs_cache(cls, format):
1012 format_keys = {f[1] for f in Formatter().parse(format)}
1013 return any(key in cls.KEYS_REQUIRING_CACHE for key in format_keys)
1014
1015 def __init__(self, archive, format):
1016 from xxhash import xxh64

Callers 1

do_listMethod · 0.80

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected