New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unset_cache() to remove single keys from a cached_method #16505
Comments
This comment has been minimized.
This comment has been minimized.
Branch: u/saraedum/ticket/16505 |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
From the looks of the function Nathann |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
Please rebase this on top of #19768. |
Dependencies: #19768 |
Changed dependencies from #19768 to none |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
Please use the |
Replying to @saraedum:
For this use case, I see no reason to raise You should add doctests showing that this also works for a weak cached function and a cached method (not just plain cached functions). |
A
cached_method
'sclear_cache()
clears the entire dictionary of acached_method
. Currently, there is no way to only remove some keys. This is sometimes necessary if values in the cache are not usable anymore (e.g. because they are defined in some external expect interface but the external session is not running anymore).Component: misc
Keywords: cached_method
Author: Julian Rueth
Branch/Commit: u/saraedum/ticket/16505 @
9cee22e
Issue created by migration from https://trac.sagemath.org/ticket/16505
The text was updated successfully, but these errors were encountered: