Skip to content
Snippets Groups Projects
Commit 6d71aba3 authored by Vlastimil Zima's avatar Vlastimil Zima
Browse files

Fix #114 - Fix cache on get_state_flags

parent 426822aa
No related merge requests found
"""Registry object common."""
from abc import ABC, abstractmethod
from datetime import datetime
from functools import lru_cache
from typing import Any, Dict, Generic, Optional, TypeVar, Union, cast
from asyncstdlib import cache
from fred_api.registry.contact.contact_info_types_pb2 import ContactIdRequest
from fred_api.registry.domain.domain_info_types_pb2 import DomainIdRequest
from fred_api.registry.keyset.keyset_info_types_pb2 import KeysetIdRequest
......@@ -144,7 +144,7 @@ class RegistryObjectClient(ABC, AsyncGrpcClient, Generic[ObjectIdT, ObjectHistor
else:
getattr(request.history.upper_limit, self.object_history_id).uuid.value = end
@lru_cache()
@cache
async def get_object_state_flags(
self,
method: str,
......
......@@ -29,6 +29,7 @@ include_package_data = true
python_requires = ~=3.8
install_requires =
aioitertools >= 0.10, < 0.12
asyncstdlib ~= 3.9
backports.strenum
cryptography >= 38
fred-api-registry ~= 5.4.2
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment