Skip to content

Commit 6d30c58

Browse files
Update README.rst
1 parent 1870abc commit 6d30c58

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

README.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Basic Usage
4343
# TTL Cache
4444
from cache import AsyncTTL
4545
46-
@AsyncTTL(time_to_live=60, maxsize=1024)
46+
@AsyncTTL(time_to_live=60, maxsize=1024, skip_args=1)
4747
async def func(*args, **kwargs):
4848
"""
4949
time_to_live : max time for which a cached result is valid (in seconds)
@@ -53,11 +53,6 @@ Basic Usage
5353
"""
5454
pass
5555
56-
class Object:
57-
@AsyncTTL(time_to_live=60, maxsize=1024, skip_args=1)
58-
async def func(*args, **kwargs):
59-
pass
60-
6156
# Supports primitive as well as non-primitive function parameter.
6257
# Currently TTL & LRU cache is supported.
6358

0 commit comments

Comments
 (0)