diff --git a/artiq/coredevice/cache.py b/artiq/coredevice/cache.py index 7db1d0128..3671a5ea4 100644 --- a/artiq/coredevice/cache.py +++ b/artiq/coredevice/cache.py @@ -22,22 +22,23 @@ class CoreCache: def __init__(self, dmgr, core_device="core"): self.core = dmgr.get(core_device) - @kernel - def get(self, key: str) -> list[int32]: - """Extract a value from the core device cache. - After a value is extracted, it cannot be replaced with another value using - :meth:`put` until all kernel functions finish executing; attempting - to replace it will result in a :class:`artiq.coredevice.exceptions.CacheError`. - - If the cache does not contain any value associated with ``key``, an empty list - is returned. - - The value is not copied, so mutating it will change what's stored in the cache. - - :param str key: cache key - :return: a list of 32-bit integers - """ - return cache_get(key) + # NAC3TODO + # @kernel + # def get(self, key: str) -> list[int32]: + # """Extract a value from the core device cache. + # After a value is extracted, it cannot be replaced with another value using + # :meth:`put` until all kernel functions finish executing; attempting + # to replace it will result in a :class:`artiq.coredevice.exceptions.CacheError`. + # + # If the cache does not contain any value associated with ``key``, an empty list + # is returned. + # + # The value is not copied, so mutating it will change what's stored in the cache. + # + # :param str key: cache key + # :return: a list of 32-bit integers + # """ + # return cache_get(key) @kernel def put(self, key: str, value: list[int32]):