2017 © Pedro Peláez
 

library cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types. It also provides functionality for session handler support, and Router support.

image

aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types. It also provides functionality for session handler support, and Router support.

  • Thursday, January 21, 2016
  • by aequasi
  • Repository
  • 9 Watchers
  • 36 Stars
  • 117,446 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 11 Forks
  • 0 Open issues
  • 42 Versions
  • 2 % Grown

The README.md

This Bundle is Deprecated

This bundle has been replaced by PHP-Cache. Check it out!, (*1)

Aequasi cache-bundle Build Status

Cache Bundle for Symfony 2

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support., (*2)

The respective cache extensions will be required for your project., (*3)

Redis uses the php redis extension., (*4)

Requirements

  • PHP >= 5.6, < 7.1
  • Symfony >= 2.7, < 4.0
  • Composer

To Install

Run the following in your project root, assuming you have composer set up for your project, (*5)

composer.phar require aequasi/cache-bundle

Add the bundle to app/AppKernel.php, (*6)

$bundles(
    ...
       new Aequasi\Bundle\CacheBundle\AequasiCacheBundle(),
    ...
);

Then add parameters (probably in config.yml) for your servers, and options, (*7)

aequasi_cache:
    instances:
        default:
          persistent: true # Boolean or persistent_id
          namespace: mc
          type: memcached
          hosts:
              - { host: localhost, port: 11211 }

To see all the config options, run php app/console config:dump-reference aequasi_cache to view the config settings, (*8)

Doctrine

This bundle allows you to use its services for Doctrine's caching methods of metadata, result, and query., (*9)

If you want doctrine to use this as the result and query cache, add this, (*10)

aequasi_cache:
    doctrine:
        enabled: true
        metadata:
            instance: default
            entity_managers:   [ default ]          # the name of your entity_manager connection
            document_managers: [ default ]       # the name of your document_manager connection
        result:
            instance: default
            entity_managers:   [ default, read ]  # you may specify multiple entity_managers
        query:
            instance: default
            entity_managers: [ default ]

Session

This bundle even allows you to store your session data in one of your cache clusters. To enable:, (*11)

aequasi_cache:
    session:
        enabled: true
        instance: default
        prefix: "session_"
        ttl: 7200

Router

This bundle also provides router caching, to help speed that section up. To enable:, (*12)

aequasi_cache:
    router:
        enabled: true
        instance: default

If you change any of your routes, you will need to clear all of the route_* keys in your cache., (*13)

To Use

To use this with doctrine's entity manager, just make sure you have useResultCache and/or useQueryCache set to true. If you want to use the user cache, just grab the service out of the container like so:, (*14)

// Change default to the name of your instance
$cache = $container->get( 'aequasi_cache.instance.default' );
// Or
$cache = $container->get( 'aequasi_cache.default' );

Here is an example usage of the service:, (*15)

$cache = $this->get( 'aequasi_cache.instance.default' );
$item = $cache->getItem('test');
if ($item->isHit()) {
    var_dump($item->get());

    return;
}

$cache->saveItem('test', $em->find('AcmeDemoBundle:User', 1), 3600);

Need Help?

Create an issue if you've found a bug, or ping me on twitter: @aequasi, (*16)

The Versions

21/01 2016

dev-master

9999999-dev https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types. It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

The Development Requires

cache php redis memcached

04/12 2015

dev-develop

dev-develop https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types. It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

The Development Requires

cache php redis memcached

29/07 2015

3.0.2

3.0.2.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

The Development Requires

cache php redis memcached

22/06 2015

3.0.1

3.0.1.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

The Development Requires

cache php redis memcached

01/01 2015

3.0.0

3.0.0.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

The Development Requires

cache php redis memcached

10/11 2014

2.4.0

2.4.0.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

08/07 2014

2.3.1

2.3.1.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

22/04 2014

2.3.0

2.3.0.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

06/03 2014

2.2.3

2.2.3.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

17/02 2014

2.2.2

2.2.2.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

17/02 2014

2.2.1

2.2.1.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

17/02 2014

2.2.0

2.2.0.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

07/02 2014

2.1.5

2.1.5.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

07/02 2014

2.1.4

2.1.4.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

04/02 2014

2.1.3

2.1.3.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

04/02 2014

2.1.2

2.1.2.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

04/02 2014

2.1.0

2.1.0.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

04/02 2014

2.1.1

2.1.1.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

21/01 2014

2.0.3

2.0.3.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

21/01 2014

2.0.2

2.0.2.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

21/01 2014

2.0.1

2.0.1.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

21/01 2014

2.0.0

2.0.0.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

13/01 2014

1.3.8

1.3.8.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

13/01 2014

1.3.7

1.3.7.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

10/01 2014

1.3.6

1.3.6.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

07/01 2014

1.3.5

1.3.5.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

25/12 2013

1.3.4

1.3.4.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

25/12 2013

1.3.3

1.3.3.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

25/12 2013

1.3.2

1.3.2.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

25/12 2013

1.3.1

1.3.1.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

25/12 2013

1.3.0

1.3.0.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

25/12 2013

1.2.5

1.2.5.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

25/12 2013

1.2.6

1.2.6.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

12/12 2013

1.2.4

1.2.4.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

12/12 2013

1.2.3

1.2.3.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

12/12 2013

1.2.2

1.2.2.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

12/12 2013

1.2.1

1.2.1.0 https://github.com/aequasi/cache-bundle

Creates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

12/12 2013

1.2.0

1.2.0.0 https://github.com/aequasi/cache-bundle

Cached Bundle

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

11/12 2013

1.1.1

1.1.1.0 https://github.com/aequasi/cache-bundle

Cached Bundle

  Sources   Download

Apache V2

The Requires

 

cache php redis memcached

11/12 2013

1.1.0

1.1.0.0 https://github.com/aequasi/cache-bundle

Cached Bundle

  Sources   Download

Apache

The Requires

 

cache php redis memcached

11/12 2013

1.0.3

1.0.3.0 https://github.com/aequasi/cache-bundle

Cached Bundle

  Sources   Download

Apache

The Requires

 

cache php redis memcached

10/12 2013

1.0.2

1.0.2.0 https://github.com/aequasi/cache-bundle

Cached Bundle

  Sources   Download

Apache

The Requires

 

cache php redis memcached