python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Python @lru_cache() how to store key with different value
I understand that following caches an item in dict with key as 1 and value as "this is item 1 value"
@lru_cache()
def get_item(item_id):
return {item_id: f"this is item {item_id} va...

Anum Sheraz
Votes: 0
Answers: 0
How can i store result in cache?
I want to store the result in cache also for a time limit like 24hrs. How can i do it. I tried lru_cache but didn't got right code to do it
import json
import IndicatorTypes
from OTXv2 import OTXv2
fr...
roXx
Votes: 0
Answers: 0