trt / doctrine-encrypted-cache
Doctrine Encrypted Cache Drivers
Installs: 1 595
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- ext-mcrypt: *
- doctrine/cache: ~1.3
Requires (Dev)
- phpunit/phpunit: ~4.4
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');