trt / doctrine-encrypted-cache
Doctrine Encrypted Cache Drivers
v0.2
2015-07-31 09:13 UTC
Requires
- ext-mcrypt: *
- doctrine/cache: ~1.3
Requires (Dev)
- phpunit/phpunit: ~4.4
This package is not auto-updated.
Last update: 2024-12-17 10:19:02 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');