Skip to content
Snippets Groups Projects
Commit 13a62d13 authored by Robert Latta's avatar Robert Latta
Browse files

locally cached equipment_name

parent 28f9e54b
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ import ipaddress
import json
import logging
import re
from functools import lru_cache
from typing import Optional
from flask import Blueprint, Response, request
......@@ -102,6 +103,7 @@ def after_request(resp):
return common.after_request(resp)
@lru_cache(256)
def get_ims_equipment_name(equipment_name: str, r: Redis=None) -> str:
if not r:
r = common.get_current_redis()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment