Skip to content

Commit 3453536

Browse files
committed
Added primitive Dynamodb support
1 parent 0a233b1 commit 3453536

19 files changed

+2025
-158
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
- Removed Autoload test since its support has been removed and now only managed by Composer
3636
- Increased tests reliability and code coverage for better catching any eventual regression
3737
- __Drivers__
38+
- Added `Arangodb` driver support
39+
- Added `Dynamodb` driver support
3840
- Removed `Cookie` driver because of its potential dangerosity
3941
- Removed `Couchbase` (SDK 2 support dropped) driver which is now replaced by `Couchbasev3` (SDK 3)
4042
- Removed `Devtrue` and `Devfalse` drivers

CHANGELOG_API.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
- **[BC Break]** Upgraded `psr/cache` dependency to `^3.0` which required `ExtendedCacheItemPoolInterface` and `ExtendedCacheItemInterface` updates
33
- **[BC Break]** Increased minimum PHP compatibility to `^8.0` which also required `TaggableCacheItemPoolInterface` and `TaggableCacheItemInterface` updates
44
- **[BC Break]** Updated `ExtendedCacheItemPoolInterface::saveMultiple(ExtendedCacheItemInterface...$items)` which no longer accept argument #0 to be itself an array of `ExtendedCacheItemInterface` objects
5-
- Referenced `TaggableCacheItemPoolInterface::TAG_STRATEGY_*` constants to `TaggableCacheItemInterface::TAG_STRATEGY_*` for more code usability
5+
- **[BC Break]** Updated `ExtendedCacheItemPoolInterface::getConfigClass()` signature: it is now a **static** method
6+
- Added `ExtendedCacheItemPoolInterface::getItemClass()`
67
- Added `ExtendedCacheItemInterface::hasTag(string $tag)` to test if a cache item is tagged with the provided tag
78
- Added `ExtendedCacheItemInterface::hasTags(array $tags, int $strategy)` to test if a cache item is tagged with ones the provided tags with an optional `$strategy` parameter
9+
- Referenced `TaggableCacheItemPoolInterface::TAG_STRATEGY_*` constants to `TaggableCacheItemInterface::TAG_STRATEGY_*` for more code usability
810

911
## 3.0.0
1012
- **[BC Break]** Removed `ExtendedCacheItemPoolInterface::appendItemsByTagsAll()` (replaced by strategy `TaggableCacheItemPoolInterface::TAG_STRATEGY_ALL`)

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ The simplicity of abstraction: One class for many backend cache. You don't need
2121
| `Files` | `Cassandra` | `Devrandom` | `SemiReplicationCluster` |
2222
| `Leveldb` | `CouchBasev3`<br>_(`Couchbase` for SDK 2 support removed)_ | `Memstatic` | `MasterSlaveReplicationCluster` |
2323
| `Memcache(d)` | `Couchdb` | | `RandomReplicationCluster` |
24-
| `Sqlite` | `Mongodb` | | |
25-
| `Wincache` | `Predis` | | |
26-
| `Zend Disk Cache` | `Redis` | | |
24+
| `Sqlite` | `Dynamodb` | | |
25+
| `Wincache` | `Mongodb` | | |
26+
| `Zend Disk Cache` | `Predis` | | |
27+
| | `Redis` | | |
2728
| | `Ssdb` | | |
2829
| | `Zend Memory Cache` | | |
2930
| | | | |

composer.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "phpfastcache/phpfastcache",
33
"type" : "library",
44
"description": "PHP Abstract Cache Class - Reduce your database call using cache system. Phpfastcache handles a lot of drivers such as Apc(u), Cassandra, CouchBase, Couchdb, Mongodb, Files, (P)redis, Leveldb, Memcache(d), Ssdb, Sqlite, Wincache, Xcache, Zend Data Cache.",
5-
"keywords": ["abstract", "cache","caching","php cache","mysql cache","apc","apcu","memcache","memcached","wincache","files cache","pdo cache","cache class","redis","predis","cookie", "mongodb", "cassandra", "couchdb", "couchbase", "LevelDb", "Ssdb", "Wincache", "xcache","zend","zend disk cache","zend memory cache","zend data cache","zend server"],
5+
"keywords": ["abstract", "cache","caching","php cache","mysql cache","apc","apcu","arangodb","dynamodb","memcache","memcached","wincache","files cache","pdo cache","cache class","redis","predis","cookie", "mongodb", "cassandra", "couchdb", "couchbase", "LevelDb", "Ssdb", "Wincache", "xcache","zend","zend disk cache","zend memory cache","zend data cache","zend server"],
66
"homepage": "https://www.phpfastcache.com",
77
"license": "MIT",
88
"minimum-stability": "stable",
@@ -19,11 +19,18 @@
1919
}
2020
],
2121
"require": {
22-
"php": "^8.0",
22+
"php": ">=8.0",
2323
"psr/cache": "^3.0",
2424
"psr/simple-cache": "^1.0.",
2525
"ext-mbstring": "*",
26-
"ext-json": "*"
26+
"ext-json": "*",
27+
"doctrine/couchdb": "dev-master",
28+
"phpfastcache/phpssdb": "~1.1.0",
29+
"predis/predis": "~1.1.0",
30+
"mongodb/mongodb": "1.9",
31+
"triagens/arangodb": "3.8",
32+
"aws/aws-sdk-php": "~3.0",
33+
"symfony/var-dumper": "^5.3"
2734
},
2835
"require-dev": {
2936
"league/climate": "^3.5",
@@ -50,7 +57,8 @@
5057
"mongodb/mongodb": "^1.9",
5158
"phpfastcache/phpssdb": "~1.1.0",
5259
"doctrine/couchdb": "^dev-master#9eeb9e5",
53-
"triagens/arangodb": "^3.8"
60+
"triagens/arangodb": "^3.8",
61+
"aws/aws-sdk-php": "~3.0"
5462
},
5563
"conflict": {
5664
"doctrine/couchdb": "<dev-master#9eeb9e5"

0 commit comments

Comments
 (0)