Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: composer validate

- name: Setup GCP environment
run: ./bin/ci/scripts/setup_gcp.sh
run: "./bin/ci/scripts/setup_gcp.sh || echo \"GCP setup failed (maybe due to fork limitation)\""
env:
BASE64_GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.BASE64_GOOGLE_APPLICATION_CREDENTIALS }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
Expand Down
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
## 9.0.1
##### 14 november 2021
- __Core__
- Added `\Phpfastcache\Event\Event` class for centralizing event name with reusable constants.
- __Item__
- `\Psr\Cache\CacheItemInterface::set` will also no longer accepts resource object anymore as method unique parameter
- __Misc__
- Fixed typos in [README.md](./README.md)
## 9.0.0
##### 1 october 2021
##### 31 october 2021
- __Migration guide__
- Read the [migration guide](./docs/migration/MigratingFromV8ToV9.md) to upgrade from V8 to V9
- __PSR-6__
- Upgraded `psr/cache` dependency to `^2.0||^3.0` (for PHP-8 types)
- `\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`.
- __PSR-16__
- _To be written when the PSR-16 will be upgraded for PHP-8_
- Upgraded `psr/simple-cache` dependency to `^2.0||^3.0` (for PHP-8 types)
- __API__
- Upgraded Phpfastcache API `4.0.0` ([see changes](CHANGELOG_API.md))
- Renamed `Api::getPhpFastCacheVersion()` to `Api::getPhpfastcacheVersion()`
Expand Down
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![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)
[![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)
[![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)

#### :warning: Please note that the V9 is mostly a PHP 8 type aware update of Phpfastcache with some significant changes !
> 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.
Expand All @@ -19,19 +19,16 @@ The simplicity of abstraction: One class for many backend cache. You don't need
|---------------------------------|---------------------------------------------------------------|-------------------------------|-----------------------------------|
| `Apcu` *(APC support removed)* | `Arangodb` | `Devnull` | `FullReplicationCluster` |
| `Dynamodb` (AWS) | `Cassandra` | `Devrandom` | `SemiReplicationCluster` |
| `Files` | `CouchBasev3`<br>_(`Couchbase` for SDK 2 support removed)_ | `Devrandom` | `SemiReplicationCluster` |
| `Firestore` (GCP) | `Couchdb` | `Devrandom` | `SemiReplicationCluster` |
| `Leveldb` | `Mongodb` | `Memstatic` | `MasterSlaveReplicationCluster` |
| `Memcache(d)` | `Predis` | | `RandomReplicationCluster` |
| `Files` | `CouchBasev3`<br>_(`Couchbase` for SDK 2 support removed)_ | `Memstatic` | `MasterSlaveReplicationCluster` |
| `Firestore` (GCP) | `Couchdb` | | `RandomReplicationCluster` |
| `Leveldb` | `Mongodb` | | |
| `Memcache(d)` | `Predis` | | |
| `Sqlite` | `Redis` | | |
| `Wincache` | `Ssdb` | | |
| `Zend Disk Cache` | `Zend Memory Cache` | | |
| | | | |
| | | | |
| | | | |
| | | | |

\* Driver descriptions available in DOCS/DRIVERS.md
\* Driver descriptions available in [DOCS/DRIVERS.md](./docs/DRIVERS.md)

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

---------------------------
Rich Development API
---------------------------
Expand Down
8 changes: 6 additions & 2 deletions bin/ci/scripts/setup_gcp.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash

printenv BASE64_GOOGLE_APPLICATION_CREDENTIALS | base64 --decode > "${GOOGLE_APPLICATION_CREDENTIALS}"
if [ -z ${BASE64_GOOGLE_APPLICATION_CREDENTIALS+x} ] || [ -z ${GOOGLE_APPLICATION_CREDENTIALS+x} ];
then
echo "GCP secret variables are not set, ignoring..."
else
printenv BASE64_GOOGLE_APPLICATION_CREDENTIALS | base64 --decode > "${GOOGLE_APPLICATION_CREDENTIALS}"
fi
6 changes: 6 additions & 0 deletions docs/examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
### Important notice

Example files were removed due to maintainability problem.\
Instead you can take a look at the `/tests` directory which contains a lot of code example your can inspire yourself to.

[Bring me to `/tests` directory](../../tests)
57 changes: 0 additions & 57 deletions docs/examples/SaveMultiple.php

This file was deleted.

41 changes: 0 additions & 41 deletions docs/examples/apc.php

This file was deleted.

52 changes: 0 additions & 52 deletions docs/examples/cassandra.php

This file was deleted.

41 changes: 0 additions & 41 deletions docs/examples/cookie.php

This file was deleted.

49 changes: 0 additions & 49 deletions docs/examples/couchbase.php

This file was deleted.

51 changes: 0 additions & 51 deletions docs/examples/couchdb.php

This file was deleted.

Loading