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)
| 227 | |
| 228 | |
| 229 | def 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 | |
| 243 | def flush_(bank, key=None, cachedir=None, **kwargs): |
nothing calls this directly
no test coverage detected