redis-func-cache 0.2.2__tar.gz → 0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. redis_func_cache-0.3/CHANGELOG.md +79 -0
  2. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/MANIFEST.in +5 -0
  3. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/PKG-INFO +316 -106
  4. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/README.md +304 -100
  5. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/pyproject.toml +10 -6
  6. redis_func_cache-0.3/src/redis_func_cache/__init__.py +26 -0
  7. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/_version.py +2 -2
  8. redis_func_cache-0.3/src/redis_func_cache/cache.py +560 -0
  9. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/mixins/hash.py +43 -29
  10. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/policies/abstract.py +20 -21
  11. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/policies/base.py +26 -51
  12. redis_func_cache-0.3/src/redis_func_cache/policies/fifo.py +96 -0
  13. redis_func_cache-0.3/src/redis_func_cache/policies/lru.py +96 -0
  14. redis_func_cache-0.3/src/redis_func_cache/utils.py +65 -0
  15. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache.egg-info/PKG-INFO +316 -106
  16. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache.egg-info/SOURCES.txt +0 -3
  17. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache.egg-info/requires.txt +8 -2
  18. redis_func_cache-0.2.2/CHANGELOG.md +0 -46
  19. redis_func_cache-0.2.2/requirements.txt +0 -15
  20. redis_func_cache-0.2.2/src/redis_func_cache/__init__.py +0 -10
  21. redis_func_cache-0.2.2/src/redis_func_cache/cache.py +0 -333
  22. redis_func_cache-0.2.2/src/redis_func_cache/policies/fifo.py +0 -47
  23. redis_func_cache-0.2.2/src/redis_func_cache/policies/fifo_t.py +0 -47
  24. redis_func_cache-0.2.2/src/redis_func_cache/policies/lru.py +0 -47
  25. redis_func_cache-0.2.2/src/redis_func_cache/policies/lru_t.py +0 -45
  26. redis_func_cache-0.2.2/src/redis_func_cache/utils.py +0 -82
  27. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/AUTHORS.md +0 -0
  28. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/LICENSE.md +0 -0
  29. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/setup.cfg +0 -0
  30. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/constants.py +0 -0
  31. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/lua/fifo_get.lua +0 -0
  32. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/lua/fifo_put.lua +0 -0
  33. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/lua/fifo_t_put.lua +0 -0
  34. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/lua/lfu_get.lua +0 -0
  35. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/lua/lfu_put.lua +0 -0
  36. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/lua/lru_get.lua +0 -0
  37. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/lua/lru_put.lua +0 -0
  38. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/lua/lru_t_get.lua +0 -0
  39. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/lua/lru_t_put.lua +0 -0
  40. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/lua/rr_get.lua +0 -0
  41. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/lua/rr_put.lua +0 -0
  42. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/mixins/__init__.py +0 -0
  43. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/mixins/policies.py +0 -0
  44. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/policies/__init__.py +0 -0
  45. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/policies/lfu.py +0 -0
  46. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/policies/mru.py +0 -0
  47. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/policies/rr.py +0 -0
  48. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache/py.typed +0 -0
  49. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache.egg-info/dependency_links.txt +0 -0
  50. {redis_func_cache-0.2.2 → redis_func_cache-0.3}/src/redis_func_cache.egg-info/top_level.txt +0 -0
@@ -0,0 +1,79 @@
1
+ # Changelog
2
+
3
+ ## v0.3
4
+
5
+ > 📅 2025-01-08
6
+
7
+ - ✨ **New Features:**
8
+ - Added setter methods for the `name`, `prefix`, `maxsize`, `ttl`, and `serializer` properties in the `RedisFuncCache` class.
9
+ - Introduced support for `msgpack` and `cloudpickle`.
10
+ - Added "per-function" custom serializer/deserializer parameter to `RedisFuncCache`'s decorate method.
11
+
12
+ - 💔 **Breaking Changes:**
13
+ - Moved the `lru-t` policy class to the `policies/lru` module.
14
+ - Moved the `fifo-t` policy class to the `policies/fifo` module.
15
+ - Renamed `size` to `get_size` and `asize` to `aget_size` in `AbstractPolicy` and its subclasses.
16
+
17
+ - 💹 **Improvements:**
18
+ - The default hash function now calculates the hash value based on the callable's byte code instead of source code.
19
+ - Updated the default values of several arguments in the `RedisFuncCache` constructor.
20
+ - Improved type casting in the `cache` module.
21
+
22
+ - 📦 **Packaging:**
23
+ - Added `msgpack` and `cloudpickle` as optional dependencies.
24
+ - Adjusted the `manifest.in` file.
25
+
26
+ - 🧪 **Tests:**
27
+ - Added more test cases.
28
+ - Fixed asynchronous bugs in existing tests.
29
+ - Optimized Docker Compose-based tests.
30
+
31
+ - ⚙️ **CI:**
32
+ - Added Redis cluster tests in GitHub Actions.
33
+ - Fixed issues with `codecov` coverage upload.
34
+ - Removed PyPy testing from `tests/run.sh`.
35
+
36
+ ## v0.2.2
37
+
38
+ > 📅 2024-12-23
39
+
40
+ - ✨ **New Features:**
41
+ - New `fifo-t` (Timestamp based pseudo FIFO replacement policy)
42
+
43
+ - 🐛 **Bug Fixes:**
44
+ - Wrong type checking for `redis.cluster.RedisCluster` and `redis.asyncio.cluster.RedisCluster`
45
+
46
+ - 🛠 **Improvements:**
47
+ - Remove some un-used utilities
48
+
49
+ - 📦 **Packaging:**
50
+ - Add `hiredis` extras requirements
51
+ - Adjust `manifest.in` file
52
+
53
+ - 📚 **Documentation:**
54
+ - Modify documentation for docker-composed unit testing
55
+
56
+ - 🧪 **Tests:**
57
+ - New add cluster based tests
58
+ - Improved docker-composed based tests
59
+
60
+ ## v0.2.1
61
+
62
+ > 📅 2024-12-19
63
+
64
+ - ✨ **New Features:**
65
+ - Added support for asynchronous operations.
66
+
67
+ - 🐛 **Bug Fixes:**
68
+ - Resolved several known issues.
69
+ - Eliminated duplicate parts in the function full name used as a key.
70
+
71
+ - 🛠 **Improvements:**
72
+ - Enhanced type hints for better code clarity.
73
+ - Provided more detailed documentation to improve user understanding.
74
+
75
+ ## v0.1
76
+
77
+ > 📅 2024-12-17
78
+
79
+ The First release, it's an early version, do not use it in production.
@@ -1,4 +1,9 @@
1
1
  exclude .*
2
+ exclude codecov.*
3
+ exclude coverage.*
4
+ exclude junit.*
5
+ exclude qodana.*
6
+ exclude requirements.txt
2
7
 
3
8
  prune .*
4
9