PHPackages                             kitano/cache-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. kitano/cache-bundle

ActiveSymfony-bundle[Caching](/categories/caching)

kitano/cache-bundle
===================

Cache abstraction

144963[7 issues](https://github.com/Kitano/KitanoCacheBundle/issues)PHP

Since Apr 20Pushed 12y ago5 watchersCompare

[ Source](https://github.com/Kitano/KitanoCacheBundle)[ Packagist](https://packagist.org/packages/kitano/cache-bundle)[ RSS](/packages/kitano-cache-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

CacheBundle
===========

[](#cachebundle)

⚠️⚠️⚠️ **CAUTION: THIS BUNDLE IS DEPRECATED AND THE DEVELOPMENT HAS MOVED TO A NEW REPOSITORY ** ⚠️⚠️⚠️

Add cache abstraction and method annotations for controlling cache. The current implementation of the Cache component is a wrapper (proxy) for Doctrine\\Common\\Cache.

TODO
----

[](#todo)

- Add TTL strategy
- Add annotation handling for overridden classes
- Write more tests
- Use cache name (from config) as namespace for cache keys
- Add cache configuration factories for all available cache drivers in Doctrine Cache
    - ArrayCache
    - ApcCache
    - MemcachedCache
    - MemcacheCache
    - FileCache
    - RedisCache
- **\[WIP\]** Add @CacheUpdate annotation for updating cache entry after method execution
- Add options to @CacheEvict annotation for deleting all entries from cache.
- Add @CacheTTL annotation ??
- **\[WIP\]** Add DataCollector for Cache operations

Index
-----

[](#index)

- [State](#state)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
    - [Basic usage](#basic-usage)
    - [Custom Cache Manager](#custom-cache-manager)
    - [Key generation](#key-generation)
    - [Custom Key generation](#custom-key-generation)
    - [Annotation based caching (recommended)](#annotation-based-caching)
        - [@Cacheable annotation](#cacheable-annotation)
        - [@CacheEvict annotation](#cacheevict-annotation)
        - [@CacheUpdate annotation](#cacheupdate-annotation)
        - [Expression Language](#expression-language)
    - [TTL Strategy](#ttl-strategy)
- [Testing](#testing)
- [License](#license)

State
-----

[](#state)

Unstable. [![Build Status](https://camo.githubusercontent.com/883adbcf912444a60de4a1e4d212e566da0dcc7dbd83b637a2336bf622b44a49/68747470733a2f2f7472617669732d63692e6f72672f4b6974616e6f2f4b6974616e6f436163686542756e646c652e706e673f6272616e63683d646174612d636f6c6c6563746f72)](https://travis-ci.org/Kitano/KitanoCacheBundle)

Installation
------------

[](#installation)

First, install the bundle package with composer:

```
$ php composer.phar require kitano/cache-bundle
```

Next, activate the bundle (and bundle it depends on) into `app/AppKernel.php`:

```
