Files
volatility3/volatility/framework/caching.py
Nick L. Petroni, Jr 1264b87ad7 refactor cache disabling
removed package-global CACHING variable. Replaced with
volatility.framework.caching.DISABLED, which defaults to False.

Updated cli to use argparse logic, rather than checking
sys.argv.

Removed unused volatility.framework.constants.CACHING.
2021-01-06 12:08:23 -05:00

10 lines
178 B
Python

import functools
import volatility
DISABLED = False
def lru_cache(*args, **kwargs):
if DISABLED:
return lambda x: x
return functools.lru_cache(*args, **kwargs)