2017 © Pedro Peláez
 

library data-cacher

Thruster DataCacher Component

image

thruster/data-cacher

Thruster DataCacher Component

  • Sunday, December 6, 2015
  • by gcds
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

DataCacher Component

[Latest Version] (https://github.com/ThrusterIO/data-cacher/releases) [Software License] (LICENSE) [Build Status] (https://travis-ci.org/ThrusterIO/data-cacher) [Code Coverage] (https://scrutinizer-ci.com/g/ThrusterIO/data-cacher) [Quality Score] (https://scrutinizer-ci.com/g/ThrusterIO/data-cacher) [Total Downloads] (https://packagist.org/packages/thruster/data-cacher), (*1)

[Email] (mailto:team@thruster.io), (*2)

The Thruster DataCacher Component., (*3)

Install

Via Composer, (*4)

``` bash $ composer require thruster/data-cacher, (*5)



## Usage ```php $someCacher = new class extends BaseDataCacher { public static function getName() : string { return 'some_cacher'; } public function getKey($keyData) : array { return ['some', $keyData]; } public function getTTL() : int { return 60 * 60 * 24 * 7 } }; $dataCacher = new DataCacher($driver, $someCacher); $dataCacher->cache($object->getId(), $object); $dataCacher->get(101);

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*7)

License

Please see License File for more information., (*8)

The Versions

06/12 2015

dev-master

9999999-dev https://thruster.io

Thruster DataCacher Component

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

cache data cacher thruster datacacher data-cacher

06/12 2015

1.0.0

1.0.0.0 https://thruster.io

Thruster DataCacher Component

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

cache data cacher thruster datacacher data-cacher