mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-28 12:34:53 +02:00
Core: Initial addition of cache control
This commit is contained in:
@@ -12,7 +12,7 @@ import functools
|
||||
import hashlib
|
||||
from typing import Callable, Dict, Iterable, List, Optional, Set, Tuple, Union
|
||||
|
||||
from volatility.framework import constants, interfaces, symbols, exceptions
|
||||
from volatility.framework import constants, interfaces, symbols, exceptions, caching
|
||||
from volatility.framework.objects import templates
|
||||
|
||||
|
||||
@@ -277,7 +277,7 @@ class SizedModule(Module):
|
||||
return self._size
|
||||
|
||||
@property # type: ignore # FIXME: mypy #5107
|
||||
@functools.lru_cache()
|
||||
@caching.lru_cache()
|
||||
def hash(self) -> str:
|
||||
"""Hashes the module for equality checks.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user