| Package Data | |
|---|---|
| Maintainer Username: | urakozz |
| Maintainer Contact: | urakozz@gmail.com (Yury Kozyrev) |
| Package Create Date: | 2015-04-15 |
| Package Last Update: | 2015-05-20 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-23 15:04:00 |
| Package Statistics | |
|---|---|
| Total Downloads: | 9,513 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 2 |
| Total Watchers: | 2 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Laravel Proxy to Doctrine Cache
LaravelDoctrineCache implements Doctrine\Common\Cache\Cache interface
so it's fully compatible with all libraries that are requiring Doctrine Cache such as:
LaravelDoctrineCache is using cache from app container : Container::getInstance()->offsetGet('cache') and points Doctrine\Common\Cache\Cache methods to suitable Laravel Cache methods
#JMS\Serializer
$serializer = \JMS\Serializer\SerializerBuilder::create()
->setAnnotationReader(new CachedReader(new AnnotationReader(), new LaravelDoctrineCache()))
->build();
Methods
fetch($id) - Fetches an entry from the cache
contains($id) - Test if an entry exists in the cache
save($id, $data, $lifeTime = false) - Puts data into the cache
delete($id) - Deletes a cache entry