2017 © Pedro PelĆ”ez
 

library cache

Library pra controle de cache

image

escapework/cache

Library pra controle de cache

  • Wednesday, April 24, 2013
  • by luisdalmolin
  • Repository
  • 7 Watchers
  • 2 Stars
  • 59 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

EscapeWork\Cache (Beta) Build Status

Em construção., (*1)

Exemplos

use EscapeWork\Cache\Facade as Cache;

# setting 
Cache::set('key', 'value', 'namespace'); # namespace Ć© opcional 

# getting
# if the value don't exists in cache, the closure is called
Cache::get('key', function() {
    return 'your function to get data';
}, 'namespace');

# deleting 
Cache::delete('key');

# flush namespace 
Cache::flushNamespace('namespace');

# flush all cache 
Cache::flush();

Tipos de cache disponĆ­veis

  • Memcached
  • APC
  • File
  • Array (Para testes unitĆ”rios)

Configuração

use EscapeWork\Cache\Facade as Cache;

Cache::driver(array(
    'driver' => 'memcached', 
    'memcached' => array(
        array('host' => 'your-host', 'port' => 11211) # server settings 
    ), 
));

Cache::driver(array(
    'driver' => 'file', 
    'path'   => '/path/to/your/cache/dir/', 
));

Instalação

A instalação estÔ disponível via Composer. Autoload compÔtivel com a PSR-0., (*2)

{
    "require": {
        "escapework/cache": "0.1.*"
    }
}

The Versions

24/04 2013

dev-master

9999999-dev

Library pra controle de cache

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

04/04 2013

0.1.2

0.1.2.0

Library pra controle de cache

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

27/02 2013

0.1.1

0.1.1.0

Library pra controle de cache

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

22/02 2013

0.1

0.1.0.0

Library pra controle de cache

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires