friendsofsymfony1/cache-legacy-bridge

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

dev-master / 1.0.x-dev 2023-03-31 20:28 UTC

This package is auto-updated.

Last update: 2024-10-30 02:10:41 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'