DefaultCache
Constructor:
Signature:
Parameters:
-
cache_key_fn:
- Type
-
Callable[[K], Hashable] | None
- Default
-
None
Methods:
-
get
Signature:
Parameters:
-
key:
- Type
-
K
-
-
set
Signature:
Parameters:
-
key:
- Type
-
K
-
value:
- Type
-
Future[T]
-
-
delete
Signature:
Parameters:
-
key:
- Type
-
K
-
-
clear
Signature:
Attributes:
-
cache_key_fn:
- Type
-
Callable[[K], Hashable]
-
cache_map:
- Type
-
Dict[Hashable, Future[T]]