2017 © Pedro Peláez
 

library phpcache-bundle

Bundle wrapper for phpcache library

image

mactronique/phpcache-bundle

Bundle wrapper for phpcache library

  • Thursday, September 24, 2015
  • by Macintosh_plus
  • Repository
  • 1 Watchers
  • 1 Stars
  • 153 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

phpcache-bundle

Dependency Status Latest Stable Version Latest Unstable Version License, (*1)

Install

php composer.phar require mactronique/phpcache-bundle "~1.0"

Configuration

Register Bundle

Add in your app/AppKernel.php :, (*2)

new Mactronique\Bundle\PhpCacheBundle\MactroniquePhpCacheBundle(),

Write sementic configuration

Add in you app/config/config.yml, (*3)

``` yml mactronique_php_cache: drivers: - name: xcache - name: redis options: host: 127.0.0.1 port: 6379 password: '' database: 1 timeout: 1 - name: memcached options: - server: 127.0.0.1 port: 11211 sharing: 100 - name: "null", (*4)


# Use In controller :

// Set value into key for 30 seconds $this->get('mactronique_cache.phpcache')->set('key', 'value', 30);, (*5)

// Set value into key $this->get('mactronique_cache.phpcache')->set('key', 'value');, (*6)

//get key $this->get('mactronique_cache.phpcache')->get('key');, (*7)

//check if key exists $this->get('mactronique_cache.phpcache')->exists('key');, (*8)

//remove key $this->get('mactronique_cache.phpcache')->remove('key'); ```, (*9)

Contributing

Please fork main repo and send a pull request with your change., (*10)

Thanks your in advance !, (*11)

The Versions

24/09 2015

dev-master

9999999-dev

Bundle wrapper for phpcache library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jean-Baptiste Nahan

24/09 2015

1.0.1

1.0.1.0

Bundle wrapper for phpcache library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jean-Baptiste Nahan

24/09 2015

1.0.0

1.0.0.0

Bundle wrapper for phpcache library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jean-Baptiste Nahan