zendframework/zf2 — pull request #1403 by marc-mabe (2012-05-29 20:47:15+00:00)
Title: Simplyfied cache API and added modified interfaces

- renamed Zend\Cache\Storage\AdapterInterface -> Zend\Cache\Storage\StorageInterface
- because it's the interface of the storage
and the adapters are an implementation detail

- renamed Zend\Cache\Exception\OutOfCapacityException -> Zend\Cache\Exception\OutOfSpaceException

- removed options argument array
- this simplifies things a lot and speed-op internal operations
- please only use the option instance instead

- moved some spezial methods into own interfaces and implement it only
if the adapters supports it
- AvailableSpaceCapableInterface::getAvailableSpace()
- TotalSpaceCapableInterface::getTotalSpace()
- ClearByNamespaceInterface::clearByNamespace($namespace)
- ClearByPrefixInterface::clearByPrefix($prefix)
- ClearExpiredInterface::clearExpired()
- FlushableInterface::flush()
- IterableInterface::getIterator() (extends IteratorAggregate)
- OptimizableInterface::optimize()
- TagableInterface::setTags($key, array $tags)
- TagableInterface::getTags($key)
- TagableInterface::clearByTags(array $tags, $disjunction = false)

- removed capability properties now handled by interfaces
- iterable
- clearByNamespace
- clearAllNamespaces

- update cache consumers

- removed some special cache operations within consumers like clear operations.
It's up to the user to clean the cache the right way using the cache API directly.
(e.g.: Date::getCache()->flush())