Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Latest commit

 

History

History
16 lines (13 loc) · 664 Bytes

File metadata and controls

16 lines (13 loc) · 664 Bytes

Cache

The cache system is enabled and used when the kernel.debug flag is disabled in order to increase performance of the library/bundle. This means you don't really need to care about caching since by default in production, the library will rely on the cache.system for Symfony >= 3.1 or generate a filesystem cache in the kernel.cache_dir of your application. So, by default, everything is enabled :)

But... if you want to use your own cache strategy such as APCu, Redis, ... you can define your own PSR-6 cache pool as a service and configure it with:

ivory_serializer:
    mapping:
        cache:
            pool: acme.cache.pool