fix issue with ttl with memcached and redis, refactor tests
Fix ApcCache
Merge branch 'sonata-project/master'