friendsofsymfony1/cache-legacy-bridge

Cache bridge to use modern Symfony cache systems in legacy Symfony1 projects

dev-master / 1.0.x-dev 2020-07-24 15:00 UTC

This package is auto-updated.

Last update: 2021-04-24 17:30:17 UTC


README

Cache bridge to use modern Symfony cache systems in Symfony1 projects.

This library bridges the functionality offered by the Symfony Cache component to the legacy Symfony1. Classes defined in this library can be used in place of the Symfony1 sfCache.

Status

This library is a Proof-of-Concept, do not use unless you are planning to contribute to its code.

Usage

This library is meant to be used as a replacement for sfCache classes.

Before:

  # factories.yml
  cache:
    class: sfAPCCache
    param:
      prefix: 'your-cache-prefix'

After:

  # factories.yml
  cache:
    class: Symfony1\LegacyBridge\Cache\APCUCache
    param:
      prefix: 'your-cache-prefix'