Skip to content

Releases: Rundiz/simple-cache

v3.1.0

12 Dec 06:46
@ve3 ve3
6ee143c
Compare
Choose a tag to compare

Support PHP 8.0+.

v3.0.5

12 Dec 06:46
@ve3 ve3
7604605
Compare
Choose a tag to compare

Revert back to use composer.json

v3.0.4

12 Dec 04:51
@ve3 ve3
98fdef8
Compare
Choose a tag to compare
  • Fix dependency conflict with other packages. To keep it support more versions on PHP. (on 3.0.2)
    Rundiz Simple cache supported since PHP 7.0 to latest and depend on PSR/simple-cache 1.x but some other packages depend on PSR/simple-cache 3.x. So, it will be conflict with the others while this repository need to supported more versions of PHP. The packages on composer.json have to be removed due to this reason.

v3.0.1

03 Nov 06:51
@ve3 ve3
583f485
Compare
Choose a tag to compare

v3.0

21 Jun 07:27
@ve3 ve3
0fd3fb4
Compare
Choose a tag to compare
  • Implemented PSR-16.
  • APC deprecated and will be removed in next major version.
  • Add Memory cache (or PHP array cache) that will be stay only one session and object must not unset.
  • Allow to cache boolean data that is false.

Upgrade guide.

Changed method.

save()

save() is now set(). The method argument will be same.

get()

get() is now add second argument to get default value if cache is not exists.

Previous version example:

$getResult = $SimpleCache->get('cache_id');
if ($getResult === false) {
    $getResult = 'some default data.';
}

Current version example:

$getResult = $SimpleCache->get('cache_id', 'some default data.');

Interfaces removed.

The interface name \Rundiz\SimpleCache\SimpleCacheInterface was removed due to it is implemented PSR-16 and changed to \Psr\SimpleCache\CacheInterface instead.
If you check the class instance using instanceof, please rewrite it.

Method argument renamed.

The method argument $id in delete($id), get($id), save($id) is now $key.

The method argument $data and $lifetime in save($id, $data, $lifetime) is now $value, $ttl in set($key, $value, $ttl).

These are not affect anything in your code but just notice.

v2.0

22 Apr 07:27
@ve3 ve3
Compare
Choose a tag to compare

Initial release for v.2

v1.0

12 Oct 05:06
@ve3 ve3
Compare
Choose a tag to compare

Since 2012-08-08