okta / okta-sdk-php

PHP SDK for the Okta API
Apache License 2.0
38 stars 71 forks source link

Adds Caching to SDK #43

Closed bretterer closed 6 years ago

bretterer commented 6 years ago

This adds caching to the PHP SDK.

Any PSR-6 compliant library can be used.

This ships by default with the php-cache/filesystem-memory adaptor. If new ones are wanted, you can create a new CacheManager class and instantiate the PSR-6 compliant cache pool there.

More documentation to come.

codecov-io commented 6 years ago

Codecov Report

Merging #43 into develop will increase coverage by 0.1%. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             develop      #43     +/-   ##
============================================
+ Coverage      95.06%   95.17%   +0.1%     
- Complexity       887      914     +27     
============================================
  Files            127      129      +2     
  Lines           3080     3149     +69     
============================================
+ Hits            2928     2997     +69     
  Misses           152      152
Impacted Files Coverage Δ Complexity Δ
src/Client.php 100% <100%> (ø) 9 <1> (+2) :arrow_up:
src/Cache/FilesystemManager.php 100% <100%> (ø) 2 <2> (?)
src/DataStore/DefaultDataStore.php 100% <100%> (ø) 42 <0> (+9) :arrow_up:
src/ClientBuilder.php 100% <100%> (ø) 23 <1> (+1) :arrow_up:
src/Cache/CacheManager.php 100% <100%> (ø) 13 <13> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 681dfc1...d4a3818. Read the comment docs.