forked from TruCopilot/phpfastcache
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApi.php
More file actions
68 lines (61 loc) · 1.6 KB
/
Copy pathApi.php
File metadata and controls
68 lines (61 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
/**
*
* This file is part of phpFastCache.
*
* @license MIT License (MIT)
*
* For full copyright and license information, please see the docs/CREDITS.txt file.
*
* @author Khoa Bui (khoaofgod) <khoaofgod@gmail.com> http://www.phpfastcache.com
* @author Georges.L (Geolim4) <contact@geolim4.com>
*
*/
namespace phpFastCache;
/**
* Class Api
* @package phpFastCache
*/
class Api
{
protected static $version = '1.1.2';
/**
* This method will returns the current
* API version, the API version will be
* updated by following the semantic versioning
* based on changes of:
* - ExtendedCacheItemPoolInterface
* - ExtendedCacheItemInterface
*
* @see http://semver.org/
* @return string
*/
public static function getVersion()
{
return self::$version;
}
/**
* Return the API changelog, as a string.
* @return string
*/
public static function getChangelog()
{
return <<<CHANGELOG
- 1.1.2
-- Implemented [de|a]ttaching methods to improve memory management
ExtendedCacheItemPoolInterface::detachItem()
ExtendedCacheItemPoolInterface::detachAllItems()
ExtendedCacheItemPoolInterface::attachItem()
ExtendedCacheItemPoolInterface::isAttached()
- 1.1.1
-- Implemented JsonSerializable interface to ExtendedCacheItemInterface
- 1.1.0
-- Implemented JSON methods such as:
ExtendedCacheItemPoolInterface::getItemsAsJsonString()
ExtendedCacheItemPoolInterface::getItemsByTagsAsJsonString()
ExtendedCacheItemInterface::getDataAsJsonString()
- 1.0.0
-- First initial version
CHANGELOG;
}
}