trt/doctrine-encrypted-cache

Doctrine Encrypted Cache Drivers

v0.2 2015-07-31 09:13 UTC

This package is not auto-updated.

Last update: 2024-11-05 09:49:18 UTC


README

Sometimes for security constraints may not be possible to store plain data to the web server or cache server. This library allows to encode / decode doctrine cached data.

Usage

$doctrineCache = new \Doctrine\Common\Cache\ApcCache();

$encodedCache = new \Trt\Doctrine\Cache\Provider\CacheProviderDecorator(
    $doctrineCache,
    new \Trt\Doctrine\Cache\Encryptor\Encryptor('my_key')
);

$encodedCache->save('id', .... );

$encodedCache->fetch('id');