INNER CODE UNIT · Python

wrapper

kr8s-org/kr8s · kr8s/_vendored/asyncache/__init__.py:105

            def wrapper(*args, **kwargs):
                k = key(*args, **kwargs)
                try:
                    with lock:
                        return cache[k]

                except KeyError:
                    pass  # key not found

                val = func(*args, **kwargs)

                try:
                    with lock:
                        cache[k] = val

                except ValueError:
                    pass  # val too large

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…