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
- update readme
- remote references to pylint
- more exceptions to common instead of utils (there are more internal)
- hide legacy 'experimental' stuff under TYPE_CHECKING
See [tests.test_types](src/cachew/tests/test_cachew.py#L683), [tests.test_primitive](src/cachew/tests/test_cachew.py#L721), [tests.test_dates](src/cachew/tests/test_cachew.py#L633), [tests.test_exceptions](src/cachew/tests/test_cachew.py#L1125)
149
-
*[@dataclass and NamedTuple](src/cachew/tests/test_cachew.py#L598)
See [tests.test_types](src/cachew/tests/test_cachew.py#L682), [tests.test_primitive](src/cachew/tests/test_cachew.py#L720), [tests.test_dates](src/cachew/tests/test_cachew.py#L632), [tests.test_exceptions](src/cachew/tests/test_cachew.py#L1124)
149
+
*[@dataclass and NamedTuple](src/cachew/tests/test_cachew.py#L597)
* detects [datatype schema changes](src/cachew/tests/test_cachew.py#L471) and discards old data automatically
154
+
* detects [datatype schema changes](src/cachew/tests/test_cachew.py#L470) and discards old data automatically
155
155
156
156
157
157
# Performance
@@ -165,12 +165,12 @@ You can find some of my performance tests in [benchmarks/](benchmarks) dir, and
165
165
166
166
167
167
# Using
168
-
See [docstring](src/cachew/__init__.py#L285) for up-to-date documentation on parameters and return types.
168
+
See [docstring](src/cachew/__init__.py#L279) for up-to-date documentation on parameters and return types.
169
169
You can also use [extensive unit tests](src/cachew/tests/test_cachew.py#L1) as a reference.
170
170
171
171
Some useful (but optional) arguments of `@cachew` decorator:
172
172
173
-
*`cache_path` can be a directory, or a callable that [returns a path](src/cachew/tests/test_cachew.py#L418) and depends on function's arguments.
173
+
*`cache_path` can be a directory, or a callable that [returns a path](src/cachew/tests/test_cachew.py#L417) and depends on function's arguments.
174
174
175
175
By default, `settings.DEFAULT_CACHEW_DIR` is used.
176
176
@@ -274,7 +274,7 @@ Now you can use `@mcachew` in place of `@cachew`, and be certain things don't br
274
274
## Settings
275
275
276
276
277
-
[cachew.settings](src/cachew/__init__.py#L59) exposes some parameters that allow you to control `cachew` behaviour:
277
+
[cachew.settings](src/cachew/__init__.py#L55) exposes some parameters that allow you to control `cachew` behaviour:
278
278
-`ENABLE`: set to `False` if you want to disable caching for without removing the decorators (useful for testing and debugging).
279
279
You can also use [cachew.extra.disabled_cachew](src/cachew/extra.py#L25) context manager to do it temporarily.
280
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)).
0 commit comments