MCPcopy Index your code
hub / github.com/saltstack/salt / updated

Function updated

salt/cache/mmap_cache.py:229–240  ·  view source on GitHub ↗

Return the Unix timestamp (int seconds) of the last write for *bank*/*key*, or ``None`` if the key does not exist. This reads only the index — no heap access required.

(bank, key, cachedir, **kwargs)

Source from the content-addressed store, hash-verified

227
228
229def updated(bank, key, cachedir, **kwargs):
230 """
231 Return the Unix timestamp (int seconds) of the last write for *bank*/*key*,
232 or ``None`` if the key does not exist.
233
234 This reads only the index — no heap access required.
235 """
236 cache = _get_cache(bank, cachedir)
237 mtime = cache.get_mtime(key)
238 if mtime is None:
239 return None
240 return int(mtime)
241
242
243def flush_(bank, key=None, cachedir=None, **kwargs):

Callers

nothing calls this directly

Calls 2

get_mtimeMethod · 0.80
_get_cacheFunction · 0.70

Tested by

no test coverage detected