2017 © Pedro Peláez
 

library json-guard-cached

A json-guard decorator to enable schema caching

image

superbalist/json-guard-cached

A json-guard decorator to enable schema caching

  • Wednesday, November 8, 2017
  • by superbalist
  • Repository
  • 5 Watchers
  • 0 Stars
  • 2,200 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 34 % Grown

The README.md

JSON Guard Cached

A json-guard decorator to enable schema caching. Works with any PSR-6 cache implementation., (*1)

This decorator is experimental until it proves to be worth using., (*2)

Install

Via Composer, (*3)

``` bash $ composer require yuloh/json-guard-cached, (*4)


## Usage ``` php use Cache\Adapter\Redis\RedisCachePool; use League\JsonGuard\Dereferencer; use League\JsonGuard\Cached\CachedDereferencer; $client = new Redis(); $client->connect('127.0.0.1', 6379); $cache = new RedisCachePool($client); $deref = new Dereferencer(); $deref = new CachedDereferencer($cache, $deref); $schema = $deref->dereference('file://my-schema.json');

Testing

bash $ composer test, (*5)

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions

08/11 2017