-
-
Notifications
You must be signed in to change notification settings - Fork 456
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 support for Clear Region for Memcached #104
Comments
Creating this issue in case I work on it later. |
Thanks @themakshter I will take a look at it soon :> |
…#104. Fixed custom transcoder to not care about non-object things. Unix timestamp impl with benchmarks, for fun...
@themakshter hey, I finally had some time to look into this. I first didn't really liked the implementation as it leaves existing keys still in the cache and they might never be removed. But hey, better than not having anything I guess ^^ I had to implement the solution slightly more complex than your approach and decided to do it from scratch instead of merging your PR, sorry about that. But thanks for pushing the idea 👍 |
@MichaCo , that's perfectly fine, the PR was just a very basic solution, not meant to be added into the code - I had done that to get your thoughts on it. That doesn't matter much anyway, what matters is that you found and wrote a good solution to the problem :D As for the items never being removed, that is unlikely to happen. Memcached uses LRU to determine what to remove from it, so if those keys are never used again, they will eventually get removed. Link to memcached internals page |
Memcached does not support namespacing so we have to implement it ourselves. CacheManager does it via regions, but the ClearRegion method for memcached is not supported.
A potential solution to this might be something suggested by memcached team themselves or this approach.
The text was updated successfully, but these errors were encountered: