nsrosenqvist/soma-cache

The Symfony Cache module for the SOMA framework

1.0.1 2020-06-09 13:05 UTC

This package is auto-updated.

Last update: 2024-04-09 21:26:39 UTC


README

Installation

composer require nsrosenqvist/soma-cache

Usage

First register the service provider.

Example configuration:

<?php return [
    'default' => 'files',

    'stores' => [
        'files' => [
            'driver' => 'filesystem',
            'directory' => get_path('cache').'/files',
        ],
    ],
];

To see how to configure all supported cache adapters review how the configuration is processed in CacheProvider::resolveAdapter.

License

MIT