mirror of
https://github.com/wassname/cachier.git
synced 2026-09-10 11:50:23 +08:00
doc fix
This commit is contained in:
+1
-1
@@ -133,7 +133,7 @@ Further function calls made while the calculation is being performed will not tr
|
||||
Working with unhashable arguments
|
||||
---------------------------------
|
||||
|
||||
As mentioned above, The positional and keyword arguments to the wrapped function must be hashable (i.e. Python's immutable built-in objects, not mutable containers). To get around this limitation the ``hash_params`` parameter of the ``cachier`` decorator can be provided with a callable that gets the args and kwargs from the decorated function and returns a hash key for them.
|
||||
As mentioned above, the positional and keyword arguments to the wrapped function must be hashable (i.e. Python's immutable built-in objects, not mutable containers). To get around this limitation the ``hash_params`` parameter of the ``cachier`` decorator can be provided with a callable that gets the args and kwargs from the decorated function and returns a hash key for them.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
||||
Reference in New Issue
Block a user