Skip to content

Commit 519d0fe

Browse files
committed
Refactored cache decorator
1 parent 6163281 commit 519d0fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ellar/common/cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .routing.params import Context, Provide
1212

1313

14-
class CacheDecorator:
14+
class _CacheDecorator:
1515
__slots__ = (
1616
"_is_async",
1717
"_key_prefix",
@@ -136,7 +136,7 @@ def cache(
136136
] = None,
137137
) -> t.Callable:
138138
def _wraps(func: t.Callable) -> t.Callable:
139-
cache_decorator = CacheDecorator(
139+
cache_decorator = _CacheDecorator(
140140
func,
141141
timeout,
142142
key_prefix=key_prefix,

0 commit comments

Comments
 (0)