trt/doctrine-encrypted-cache

Doctrine Encrypted Cache Drivers

Installs: 1 601

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/trt/doctrine-encrypted-cache

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

This package is not auto-updated.

Last update: 2025-10-07 14:12:21 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');