sonata-project / cache

[Deprecated] Cache library
https://github.com/sonata-project/cache
MIT License
332 stars 29 forks source link

add opCode cache adapter #21

Closed amine2z closed 9 years ago

amine2z commented 9 years ago

The new adapter allow to handle opcode cache using apc if it's installed or opcache if the PHP version is >= 5.5. The adapter handle data caching using apc.

rande commented 9 years ago

I think we need something more clever as the code is just a rip off of the APC one. Also, the name is OPCache and not OPCCache.

rande commented 9 years ago

Tips: it is not possible to have apc and opcache at the same time for the php code optimisation.

amine2z commented 9 years ago

done @rande

rande commented 9 years ago

Tests are green, but apc is not loaded ;) can you try to fix travis configuration:

http://stackoverflow.com/questions/32184700/using-apcu-on-travis-ci-which-runs-ubuntu-12-04

amine2z commented 9 years ago

@rande test are green, thx for the tips ;)

amine2z commented 9 years ago

done @rande