lsmith77/Interfaces — Issue #2: CacheInterface limitation
Author: vicb
Created: 2012-01-05 08:16:03+00:00
State: open

`CacheInterface::retrieve($key)` returns `false` when the data is not actually cached.

This prevents from storing `false` in cache which is bad.

There are multiple solution:
* return `null` when the data is not cached,
* add a second `$success` parameter

Note: This issue exists in Doctrine common, I will work on a fix (using solution 2 to be backward compatible)