Comments (3)
Hi Prathyusha,
Thanks for your interest!
This was a bug. If both max_size
and ttl
are used, when cache expires, something wrong happens. When passing the same argument as before to a cached user function, neither does my previous code update the cache, nor does it use the data stored in the cache any more. This is due to some incorrect logics when dealing with multithreading scenarios.
from python-memoization.
Resolved in v0.2.2. Now available at PyPI or GitHub Releases.
from python-memoization.
Thank you for approving this and releasing the latest version.
from python-memoization.
Related Issues (20)
- caching functions without arguments HOT 1
- How to serialize/unserialize the cache in/from a file? HOT 4
- Memoization of classes does not work HOT 2
- Use the cache directly without a decorator HOT 3
- [Q] Is there an ETA for Partial cache clearing ? HOT 1
- Cache entries not getting removed after TTL expires
- cached does not preserve type signature HOT 1
- type signature preservation does not support class arguments HOT 3
- remove particular element from cache? HOT 1
- [feature] item_size function
- easy way to handle random_seed-like paramaters
- Feature request / Help wanted: Support for coroutines and async functions
- add a new parameter in cache wrapper
- Memoization does not release memory after cache_clear HOT 1
- Ignoring some arguments when caching
- DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number HOT 1
- Caching repeated key after TTL not working HOT 1
- two dataframes with different values hitting cache incorrectly HOT 3
- Why require the keymaker to have the same signature? HOT 1
- Where is the cache dir? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-memoization.