Comments (2)
If i'm not mistaken, it increments the path key, not the value of the stored item.
Which invalidates it, as now Stash won't be able to access the stored value anymore.
If i'm understanding things correctly, when you store a value, Stash will:
- create a key with the path, and an md5 digest as the value
- then store your item with that md5 as its key
The clear method increments the md5 digest, making the stored item inaccessible. Memcached will eventually evict it, as no one will access it anymore from that point onwards.
As to why it doesn't simply use delete - i assume it has something to do with path support and making the children of a path inaccessible too.
PS: Memcached total items number is not an issue, Memcached will fill up until all the available RAM is used up, then start evicting the unused items.
from stash.
As to why it doesn't simply use delete - i assume it has something to do with path support and making the children of a path inaccessible too.
Exactly.
from stash.
Related Issues (20)
- Warning from filesystem driver: mkdir(): File exists in /data/www/wrbm/corporate/prod/vendor/tedivm/stash/src/Stash/Driver/FileSystem.php on line 234 HOT 5
- Stash Issue with Concrete5? HOT 4
- lock method creates empty folder
- class_exists() calls in APC class may trigger fatal errors
- Cached instances of objects can be altered outside of Stash HOT 3
- Redis items aren't really deleted? HOT 1
- How to disable stashcache throughout project HOT 1
- Filedriver cannot save the cache with expiration time of less than 40 seconds HOT 1
- Filedriver purge didn't work in docker HOT 2
- Function Redis::delete() is deprecated HOT 4
- Password is not global entity, it should be available in each servers for redis
- PHP 8.0 support HOT 1
- Enhance PHP 8 compatibility HOT 2
- SQLite PDO driver does not honor file permissions HOT 1
- [Redis] Option to authenticate using name and password HOT 1
- Union type declaration in Session.php is available as of PHP 8.0.0 HOT 1
- Query wildcard syntax? HOT 1
- Add an ability to disable expiration time randomization. HOT 2
- Update psr/cache to v3.0.0 HOT 3
- SETEX command is regarded as deprecated since 2.6.12
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 stash.