You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See [tests.test_types](src/cachew/tests/test_cachew.py#L686), [tests.test_primitive](src/cachew/tests/test_cachew.py#L724), [tests.test_dates](src/cachew/tests/test_cachew.py#L636), [tests.test_exceptions](src/cachew/tests/test_cachew.py#L1124)
149
-
*[@dataclass and NamedTuple](src/cachew/tests/test_cachew.py#L601)
See [tests.test_types](src/cachew/tests/test_cachew.py#L684), [tests.test_primitive](src/cachew/tests/test_cachew.py#L722), [tests.test_dates](src/cachew/tests/test_cachew.py#L634), [tests.test_exceptions](src/cachew/tests/test_cachew.py#L1122)
149
+
*[@dataclass and NamedTuple](src/cachew/tests/test_cachew.py#L599)
warnings.warn('cachew library not found. You might want to install it to speed things up. See https://github.com/karlicoss/cachew')
261
+
warnings.warn(
262
+
'cachew library not found. You might want to install it to speed things up. See https://github.com/karlicoss/cachew',
263
+
stacklevel=2,
264
+
)
262
265
returnlambdaorig_func: orig_func
263
266
else:
264
267
return cachew.cachew(*args, **kwargs)
@@ -271,9 +274,9 @@ Now you can use `@mcachew` in place of `@cachew`, and be certain things don't br
271
274
## Settings
272
275
273
276
274
-
[cachew.settings](src/cachew/__init__.py#L64) exposes some parameters that allow you to control `cachew` behaviour:
277
+
[cachew.settings](src/cachew/__init__.py#L61) exposes some parameters that allow you to control `cachew` behaviour:
275
278
-`ENABLE`: set to `False` if you want to disable caching for without removing the decorators (useful for testing and debugging).
276
-
You can also use [cachew.extra.disabled_cachew](src/cachew/extra.py#L21) context manager to do it temporarily.
279
+
You can also use [cachew.extra.disabled_cachew](src/cachew/extra.py#L24) context manager to do it temporarily.
277
280
-`DEFAULT_CACHEW_DIR`: override to set a different base directory. The default is the "user cache directory" (see [platformdirs docs](https://github.com/tox-dev/platformdirs?tab=readme-ov-file#example-output)).
278
281
-`THROW_ON_ERROR`: by default, cachew is defensive and simply attemps to cause the original function on caching issues.
0 commit comments