Hey Maxi, love all the series about the Code smell :-).
Just a curious about this line
return $this->inbox->retrieveAndRemove($title);
Here, we retrieve the title from cache and remove it immediately? Why do we retrieve and remove?
Wouldn't it increase the write-to-cache ratio by deleting cache quite often :-) ? whats your thoughts on that?
It is about the real life metaphore on retrieving an existing copy (and using it)
If you have fungible objects (A real life book is not) you could just retrieve it and keep it.
It is like aquiring a lock in this case
Manjunath Reddy
Building Stuff. Learning more Stuff.
Hey Maxi, love all the series about the Code smell :-).
Just a curious about this line
return $this->inbox->retrieveAndRemove($title);Here, we retrieve the title from cache and remove it immediately? Why do we retrieve and remove? Wouldn't it increase the write-to-cache ratio by deleting cache quite often :-) ? whats your thoughts on that?