Skip to content

Commit 750fc24

Browse files
authored
Merge pull request #16 from tekktrik/dev/update
Update example file
2 parents 763140c + cf4f5be commit 750fc24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/functools_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
"""Example usage of the circuitpython_functools module."""
77

8-
from circuitpython_functools import cache
8+
from circuitpython_functools import cache, lru_cache
99

1010

11-
@cache
11+
@lru_cache(maxsize=3)
1212
def add(a, b, *, c=1, d=2):
1313
"""Perform addition."""
1414
return a + b + c + d

0 commit comments

Comments
 (0)