Skip to content

Commit bcd068f

Browse files
authored
Merge pull request #843 from PHPSocialNetwork/v9
Released 9.0.1
2 parents 95226de + 6a53545 commit bcd068f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+280
-1448
lines changed

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1+
## 9.0.1
2+
##### 14 november 2021
3+
- __Core__
4+
- Added `\Phpfastcache\Event\Event` class for centralizing event name with reusable constants.
5+
- __Item__
6+
- `\Psr\Cache\CacheItemInterface::set` will also no longer accepts resource object anymore as method unique parameter
7+
- __Misc__
8+
- Fixed typos in [README.md](./README.md)
19
## 9.0.0
2-
##### 1 october 2021
10+
##### 31 october 2021
311
- __Migration guide__
412
- Read the [migration guide](./docs/migration/MigratingFromV8ToV9.md) to upgrade from V8 to V9
513
- __PSR-6__
614
- Upgraded `psr/cache` dependency to `^2.0||^3.0` (for PHP-8 types)
715
- `\Psr\Cache\CacheItemInterface::get()` slightly changed to fully comply with missing PSR-6 specification: If the cache item is **NOT** hit, this method will return `NULL`.
816
- __PSR-16__
9-
- _To be written when the PSR-16 will be upgraded for PHP-8_
17+
- Upgraded `psr/simple-cache` dependency to `^2.0||^3.0` (for PHP-8 types)
1018
- __API__
1119
- Upgraded Phpfastcache API `4.0.0` ([see changes](CHANGELOG_API.md))
1220
- Renamed `Api::getPhpFastCacheVersion()` to `Api::getPhpfastcacheVersion()`

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![Total Downloads](https://img.shields.io/packagist/dt/phpfastcache/phpfastcache.svg?maxAge=86400)](https://packagist.org/packages/phpfastcache/phpfastcache) [![Latest Stable Version](https://img.shields.io/packagist/v/phpfastcache/phpfastcache.svg?maxAge=86400)](https://packagist.org/packages/phpfastcache/phpfastcache) [![License](https://img.shields.io/packagist/l/phpfastcache/phpfastcache.svg?maxAge=86400)](https://packagist.org/packages/phpfastcache/phpfastcache) [![Cache Interface](https://img.shields.io/badge/CI-PSR6-orange.svg?maxAge=86400)](https://github.com/php-fig/cache) [![Extended Coding Style](https://img.shields.io/badge/ECS-PSR12-orange.svg?maxAge=86400)](https://www.php-fig.org/psr/psr-12/) [![Simple Cache](https://img.shields.io/badge/SC-PSR16-orange.svg?maxAge=86400)](https://github.com/php-fig/simple-cache)
2-
[![Code Climate](https://codeclimate.com/github/PHPSocialNetwork/phpfastcache/badges/gpa.svg)](https://codeclimate.com/github/PHPSocialNetwork/phpfastcache) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/PHPSocialNetwork/phpfastcache/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/PHPSocialNetwork/phpfastcache/?branch=master) [![Build Status](https://travis-ci.com/PHPSocialNetwork/phpfastcache.svg?branch=master)](https://travis-ci.com/PHPSocialNetwork/phpfastcache) [![Semver compliant](https://img.shields.io/badge/Semver-2.0.0-yellow.svg?maxAge=86400)](https://semver.org/spec/v2.0.0.html) [![Patreon](https://img.shields.io/badge/Support%20us%20on-Patreon-f96854.svg?maxAge=86400)](https://www.patreon.com/geolim4)
2+
[![Code Climate](https://codeclimate.com/github/PHPSocialNetwork/phpfastcache/badges/gpa.svg)](https://codeclimate.com/github/PHPSocialNetwork/phpfastcache) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/PHPSocialNetwork/phpfastcache/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/PHPSocialNetwork/phpfastcache/?branch=master) [![Build Status](https://travis-ci.com/PHPSocialNetwork/phpfastcache.svg?branch=master)](https://app.travis-ci.com/github/PHPSocialNetwork/phpfastcache) [![Semver compliant](https://img.shields.io/badge/Semver-2.0.0-yellow.svg?maxAge=86400)](https://semver.org/spec/v2.0.0.html) [![Patreon](https://img.shields.io/badge/Support%20us%20on-Patreon-f96854.svg?maxAge=86400)](https://www.patreon.com/geolim4)
33

44
#### :warning: Please note that the V9 is mostly a PHP 8 type aware update of Phpfastcache with some significant changes !
55
> As the V9 is **relatively** not compatible with previous versions, please read carefully the [migration guide](./docs/migration/MigratingFromV8ToV9.md) to ensure you the smoothest migration possible.
@@ -19,19 +19,16 @@ The simplicity of abstraction: One class for many backend cache. You don't need
1919
|---------------------------------|---------------------------------------------------------------|-------------------------------|-----------------------------------|
2020
| `Apcu` *(APC support removed)* | `Arangodb` | `Devnull` | `FullReplicationCluster` |
2121
| `Dynamodb` (AWS) | `Cassandra` | `Devrandom` | `SemiReplicationCluster` |
22-
| `Files` | `CouchBasev3`<br>_(`Couchbase` for SDK 2 support removed)_ | `Devrandom` | `SemiReplicationCluster` |
23-
| `Firestore` (GCP) | `Couchdb` | `Devrandom` | `SemiReplicationCluster` |
24-
| `Leveldb` | `Mongodb` | `Memstatic` | `MasterSlaveReplicationCluster` |
25-
| `Memcache(d)` | `Predis` | | `RandomReplicationCluster` |
22+
| `Files` | `CouchBasev3`<br>_(`Couchbase` for SDK 2 support removed)_ | `Memstatic` | `MasterSlaveReplicationCluster` |
23+
| `Firestore` (GCP) | `Couchdb` | | `RandomReplicationCluster` |
24+
| `Leveldb` | `Mongodb` | | |
25+
| `Memcache(d)` | `Predis` | | |
2626
| `Sqlite` | `Redis` | | |
2727
| `Wincache` | `Ssdb` | | |
2828
| `Zend Disk Cache` | `Zend Memory Cache` | | |
2929
| | | | |
30-
| | | | |
31-
| | | | |
32-
| | | | |
3330

34-
\* Driver descriptions available in DOCS/DRIVERS.md
31+
\* Driver descriptions available in [DOCS/DRIVERS.md](./docs/DRIVERS.md)
3532

3633
---------------------------
3734
Because caching does not mean weaken your code
@@ -41,6 +38,7 @@ Phpfastcache has been developed over the years with 3 main goals:
4138
- Performance: We optimized and still optimize the code to provide you the lightest library as possible
4239
- Security: Because caching strategies can sometimes comes with unwanted vulnerabilities, we do our best to provide you a sage & strong library as possible
4340
- Portability: No matter what operating system you're working on, we did our best to provide you the most cross-platform code as possible
41+
4442
---------------------------
4543
Rich Development API
4644
---------------------------

docs/examples/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
### Important notice
2+
3+
Example files were removed due to maintainability problem.\
4+
Instead you can take a look at the `/tests` directory which contains a lot of code example your can inspire yourself to.
5+
6+
[Bring me to `/tests` directory](../../tests)

docs/examples/SaveMultiple.php

Lines changed: 0 additions & 57 deletions
This file was deleted.

docs/examples/apc.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

docs/examples/cassandra.php

Lines changed: 0 additions & 52 deletions
This file was deleted.

docs/examples/cookie.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

docs/examples/couchbase.php

Lines changed: 0 additions & 49 deletions
This file was deleted.

docs/examples/couchdb.php

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)