mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-07 10:17:38 +02:00
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.
10 lines
178 B
Python
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)
|