We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d154466 commit c08f6ddCopy full SHA for c08f6dd
circuitpython_functools.py
@@ -107,24 +107,6 @@ def cache_clear(self):
107
gc.collect()
108
109
110
-class LRUCachedFunc:
111
- """Wrapped LRU cache function."""
112
-
113
- def __init__(self, wrapped_func, maxsize):
114
- """Initialize the wrapped LRU cache function."""
115
- self._maxsize = maxsize
116
- self._wrapped_func = wrapped_func
117
118
- def __call__(self, *args, **kwargs):
119
- """Call the wrapped function."""
120
- print(type(self._wrapped_func))
121
- return self._wrapped_func(*args, **kwargs)
122
123
- def cache_clear(self):
124
- """Clear the LRU cache."""
125
- return self.cache_clear()
126
127
128
def cache(user_function):
129
"""Create an unbounded cache."""
130
return CachedFunc(-1, user_function)
0 commit comments