Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 64f7454

Browse files
committed
[client] Use LRUCache instead of TTLCache
1 parent b3954dd commit 64f7454

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import datefinder
1111
import dateutil.parser
1212
import pytz
13-
from cachetools import TTLCache
13+
from cachetools import LRUCache
1414

1515
from pycti.api import LOGGER as API_LOGGER
1616
from pycti.entities.opencti_identity import Identity
@@ -43,7 +43,7 @@ class OpenCTIStix2:
4343
def __init__(self, opencti):
4444
self.opencti = opencti
4545
self.stix2_update = OpenCTIStix2Update(opencti)
46-
self.mapping_cache = TTLCache(maxsize=10000, ttl=3600)
46+
self.mapping_cache = LRUCache(maxsize=10000)
4747

4848
######### UTILS
4949
# region utils

0 commit comments

Comments
 (0)