Skip to content
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

Using WeakValueDictionary as a cachestore #1

Open
vaab opened this issue Feb 2, 2015 · 0 comments
Open

Using WeakValueDictionary as a cachestore #1

vaab opened this issue Feb 2, 2015 · 0 comments

Comments

@vaab
Copy link
Member

vaab commented Feb 2, 2015

This is a copy of Thomas Kemmer email suggestion::

A last one for today: I only recently came across

https://docs.python.org/3/library/weakref.html

I think WeakValueDictionary makes for a very interesting "standard" cache-like class. Maybe you don't want to replace good old dict as your default, but you should definitely check your decorator works with it, and maybe say so in the docs. Since it's quite a new thing, even seasoned Python programmers may not have heard about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant