rediscache 1.1.2__py3-none-any.whl → 1.1.4__py3-none-any.whl

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.
rediscache/__init__.py CHANGED
@@ -106,7 +106,17 @@ class RedisCache:
106
106
  use_kwargs: Optional[List[str]] = None,
107
107
  ) -> str:
108
108
  """
109
- Create a key from the function's name and its parameters values
109
+ Create a key from the function's name and its parameters values.
110
+
111
+ Args:
112
+ name: The name of the function.
113
+ args: The list of positional parameters passed to the function.
114
+ use_args: If not all, the indexes of the positional parameters to be used.
115
+ kwargs: The dictionary of named parameters passed to the function.
116
+ use_kwargs: If not all, the names of the parameters to be used.
117
+
118
+ Returns:
119
+ str: The key to be used in the Redis database.
110
120
  """
111
121
  values = []
112
122
  if args:
@@ -1,8 +1,9 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: rediscache
3
- Version: 1.1.2
3
+ Version: 1.1.4
4
4
  Summary: Redis caching of functions evolving over time
5
5
  License: MIT
6
+ License-File: LICENSE
6
7
  Keywords: redis,performance,cache
7
8
  Author: Pierre Cart-Grandjean
8
9
  Author-email: pcart-grandjean@amadeus.com
@@ -18,6 +19,7 @@ Classifier: Programming Language :: Python :: 3
18
19
  Classifier: Programming Language :: Python :: 3.11
19
20
  Classifier: Programming Language :: Python :: 3.12
20
21
  Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
21
23
  Classifier: Programming Language :: Python :: 3.10
22
24
  Classifier: Programming Language :: Python :: 3.9
23
25
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
@@ -224,9 +226,9 @@ poetry run webapp
224
226
 
225
227
  Entry points:
226
228
 
227
- - Call to long function with parameter value `20` and using the cache but waiting for a result: [link](http://localhost:9090/cached/20)
228
- - Call to long function with parameter value `20` without using the cache: [link](http://localhost:9090/direct/20)
229
- - Get the stats stored in Redis database: [link](http://localhost:9090/stats)
229
+ - Call to long function with parameter value `20` and using the cache but waiting for a result: [cached 20](http://localhost:9090/cached/20)
230
+ - Call to long function with parameter value `20` without using the cache: [direct 20](http://localhost:9090/direct/20)
231
+ - Get the stats stored in Redis database: [stats](http://localhost:9090/stats)
230
232
 
231
233
  There is also a `Nginx` configuration file to further test if with a load balancing of workers. It is useful to demonstrate that many workers can share efficiently the same instance of `Redis`.
232
234
 
@@ -0,0 +1,8 @@
1
+ rediscache/__init__.py,sha256=puOYl6GjxIhr8O3X1ZjaDupCCu_JK_XPwIiKOp4hbtQ,13755
2
+ rediscache/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ rediscache/tools.py,sha256=4Aq33tvcQezim4WR8z9LegcRgkLT1flnALhV8uSxzdA,1143
4
+ rediscache-1.1.4.dist-info/METADATA,sha256=erwWZ96JCuIBdsXuVCN1p2NHNqK5QkbVKHnqBbNd-w0,10211
5
+ rediscache-1.1.4.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
6
+ rediscache-1.1.4.dist-info/entry_points.txt,sha256=Xu1U6rXzuYGpBdz5etdzcWVfLt6ZvQfo8YZ2u9m2qyA,43
7
+ rediscache-1.1.4.dist-info/licenses/LICENSE,sha256=glwtaJmUmkPhzLEfrVcc2JmLoCyTnHst84tadlSIK_8,1123
8
+ rediscache-1.1.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.1
2
+ Generator: poetry-core 2.2.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,8 +0,0 @@
1
- rediscache/__init__.py,sha256=5vzz2VvfSkMIOWLPpBcgi3fx7Up-vKzw3Dsbx7pec4E,13300
2
- rediscache/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- rediscache/tools.py,sha256=4Aq33tvcQezim4WR8z9LegcRgkLT1flnALhV8uSxzdA,1143
4
- rediscache-1.1.2.dist-info/LICENSE,sha256=glwtaJmUmkPhzLEfrVcc2JmLoCyTnHst84tadlSIK_8,1123
5
- rediscache-1.1.2.dist-info/METADATA,sha256=3eI8CcXF06K9jjjuiKe-qFsU9HoFojMxTgNrXyhJAYk,10127
6
- rediscache-1.1.2.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
7
- rediscache-1.1.2.dist-info/entry_points.txt,sha256=Xu1U6rXzuYGpBdz5etdzcWVfLt6ZvQfo8YZ2u9m2qyA,43
8
- rediscache-1.1.2.dist-info/RECORD,,