2017 © Pedro Peláez
 

library cache

Easy to use Caching library with support for multiple caching backends

image

cakephp/cache

Easy to use Caching library with support for multiple caching backends

  • Thursday, July 19, 2018
  • by cakephp
  • Repository
  • 29 Watchers
  • 18 Stars
  • 80,310 Installations
  • PHP
  • 8 Dependents
  • 4 Suggesters
  • 7 Forks
  • 0 Open issues
  • 100 Versions
  • 69 % Grown

The README.md

CakePHP Caching Library

The Cache library provides a Cache service locator for interfacing with multiple caching backends using a simple to use interface., (*1)

The caching backends supported are:, (*2)

  • Files
  • APC
  • Memcached
  • Redis
  • Wincache
  • Xcache

Usage

Caching engines need to be configured with the Cache::config() method., (*3)

use Cake\Cache\Cache;

// Using a short name
Cache::config('default', [
    'className' => 'File',
    'duration' => '+1 hours',
    'path' => sys_get_tmp_dir(),
    'prefix' => 'my_app_'
]);

// Using a fully namespaced name.
Cache::config('long', [
    'className' => \Cake\Cache\Engine\ApcuEngine::class,
    'duration' => '+1 week',
    'prefix' => 'my_app_'
]);

// Using a constructed object.
$object = new FileEngine($config);
Cache::config('other', $object);

You can now read and write from the cache:, (*4)

$data = Cache::remember('my_cache_key', function () {
    return Service::expensiveCall();
});

The code above will try to look for data stored in cache under the my_cache_key, if not found the callback will be executed and the returned data will be cached for future calls., (*5)

Documentation

Please make sure you check the official documentation, (*6)

The Versions

19/07 2018

dev-master

9999999-dev https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

19/07 2018

3.6.8

3.6.8.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

19/07 2018

3.6.9

3.6.9.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

24/04 2018

3.6.3

3.6.3.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

24/04 2018

3.6.4

3.6.4.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

24/04 2018

3.6.5

3.6.5.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

24/04 2018

3.6.6

3.6.6.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

24/04 2018

3.6.7

3.6.7.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

19/04 2018

3.6.1

3.6.1.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

19/04 2018

3.6.2

3.6.2.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

24/03 2018

dev-3.next

dev-3.next https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

24/03 2018

3.6.0-RC1

3.6.0.0-RC1 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

24/03 2018

3.6.0-RC2

3.6.0.0-RC2 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

24/03 2018

3.6.0

3.6.0.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

19/03 2018

3.5.14

3.5.14.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

19/03 2018

3.5.15

3.5.15.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

19/03 2018

3.5.x-dev

3.5.9999999.9999999-dev https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

19/03 2018

3.5.17

3.5.17.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

23/01 2018

3.6.0-beta1

3.6.0.0-beta1 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

23/01 2018

3.6.0-beta2

3.6.0.0-beta2 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

23/01 2018

3.6.0-beta3

3.6.0.0-beta3 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

07/01 2018

3.5.11

3.5.11.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

07/01 2018

3.5.12

3.5.12.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

07/01 2018

3.5.13

3.5.13.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

20/12 2017

3.5.9

3.5.9.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

20/12 2017

3.5.10

3.5.10.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

21/11 2017

3.5.7

3.5.7.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

21/11 2017

3.5.8

3.5.8.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

29/09 2017

3.5.4

3.5.4.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

29/09 2017

3.5.5

3.5.5.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

29/09 2017

3.5.6

3.5.6.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

25/09 2017

3.5.3

3.5.3.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

01/09 2017

3.5.2

3.5.2.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

17/08 2017

3.5.0

3.5.0.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

17/08 2017

3.5.1

3.5.1.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

14/08 2017

3.4.13

3.4.13.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

14/08 2017

3.4.x-dev

3.4.9999999.9999999-dev https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

14/08 2017

3.4.14

3.4.14.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

05/08 2017

3.5.0-RC2

3.5.0.0-RC2 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

25/07 2017

3.5.0-RC1

3.5.0.0-RC1 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

22/06 2017

3.4.10

3.4.10.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

22/06 2017

3.4.11

3.4.11.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

22/06 2017

3.4.12

3.4.12.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

22/06 2017

3.4.9

3.4.9.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

20/06 2017

3.4.8

3.4.8.0 https://cakephp.org

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

cache cakephp caching

17/04 2017

3.4.6

3.4.6.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

17/04 2017

3.4.7

3.4.7.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

11/03 2017

3.4.4

3.4.4.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

11/03 2017

3.4.5

3.4.5.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

08/03 2017

3.4.3

3.4.3.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

22/02 2017

3.4.2

3.4.2.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

16/02 2017

3.4.1

3.4.1.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

30/01 2017

3.4.0

3.4.0.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

30/01 2017

3.4.0-RC4

3.4.0.0-RC4

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

03/01 2017

3.4.0-beta4

3.4.0.0-beta4

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

03/01 2017

3.4.0-RC1

3.4.0.0-RC1

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

03/01 2017

3.4.0-RC2

3.4.0.0-RC2

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

03/01 2017

3.4.0-RC3

3.4.0.0-RC3

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

22/12 2016

3.4.0-beta1

3.4.0.0-beta1

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

22/12 2016

3.4.0-beta2

3.4.0.0-beta2

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

22/12 2016

3.4.0-beta3

3.4.0.0-beta3

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.10

3.3.10.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.11

3.3.11.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.12

3.3.12.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.13

3.3.13.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.14

3.3.14.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.15

3.3.15.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.3

3.3.3.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.4

3.3.4.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.5

3.3.5.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.6

3.3.6.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.7

3.3.7.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.8

3.3.8.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.9

3.3.9.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/09 2016

3.3.16

3.3.16.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

10/08 2016

3.2.14

3.2.14.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

10/08 2016

3.3.0

3.3.0.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

10/08 2016

3.3.1

3.3.1.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

10/08 2016

3.3.2

3.3.2.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

13/07 2016

3.2.13

3.2.13.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

13/07 2016

3.3.0-beta2

3.3.0.0-beta2

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

13/07 2016

3.3.0-beta3

3.3.0.0-beta3

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

13/07 2016

3.3.0-RC1

3.3.0.0-RC1

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

25/06 2016

3.2.12

3.2.12.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

25/06 2016

3.3.0-beta

3.3.0.0-beta

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

09/05 2016

3.2.10

3.2.10.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

09/05 2016

3.2.11

3.2.11.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

09/05 2016

3.2.9

3.2.9.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

13/03 2016

3.2.5

3.2.5.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

13/03 2016

3.2.6

3.2.6.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

13/03 2016

3.2.7

3.2.7.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

13/03 2016

3.2.8

3.2.8.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

27/02 2016

3.2.4

3.2.4.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

21/02 2016

3.2.3

3.2.3.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

02/02 2016

3.2.2

3.2.2.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

30/01 2016

3.2.0

3.2.0.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

30/01 2016

3.2.1

3.2.1.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

28/01 2016

3.1.x-dev

3.1.9999999.9999999-dev

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

28/01 2016

dev-3-1

dev-3-1

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires

 

28/01 2016

3.1.10

3.1.10.0

Easy to use Caching library with support for multiple caching backends

  Sources   Download

MIT

The Requires