lstrojny/Stash — comment on commit 62eb142f33693b8398fe61914671c72f1a3d5c61
File: src/Stash/Cache.php line 302
By tedivm:

This is not actually going to provide any storage, because each cache object will cause a whole new Ephemeral handler to get created (and thus a whole new store).

What I was thinking here is that the injection of the Ephemeral cache should be moved into the CacheFactory style objects- the Cache service in the Symfony bundle, for instance, or the Box and Manager example classes we have, should detect that no handler is present and then create and store an Ephemeral instance. It's this reuse that is really key.

Continuing that line of thought, it may also make sense to have these frameworks inject the memory handler before *every* handler (using the multihandler)- the in script store has huge performance benefits, and if the frameworks simply skip that step they'll be missing out.