Skip to content

[V5˖] The phpFastCache API version

Georges.L edited this page Oct 16, 2016 · 1 revision

As of the V5, phpFastCache comes with a basic API informer in order to give you the last changelog and API version:

<?php
namespace MyCustom\Project;

use phpFastCache\Api;

$apiVersion = Api::getApiVersion();//Return a semantic versioning as per http://semver.org/
$apiChangelog = Api::getChangelog();// Return a string-formatted changelog

The changelog and version will be updated for every patch/minor/major changes to the API. The API concerns the changes related to:

  • CacheManager
  • ExtendedCacheItemPoolInterface
  • ExtendedCacheItemInterface