diff --git a/composer.json b/composer.json index 642a00c..4d4706a 100644 --- a/composer.json +++ b/composer.json @@ -44,9 +44,9 @@ "ext-json": "*", "psr/http-client": "^1.0", "psr/http-message": "^2.0", - "utopia-php/cache": "3.*", - "utopia-php/client": "^0.2", - "utopia-php/pools": "1.*", + "utopia-php/cache": "4.*", + "utopia-php/client": "0.3.*", + "utopia-php/pools": "2.*", "utopia-php/psr7": "^0.2", "utopia-php/cloudevents": "0.1.*" }, diff --git a/composer.lock b/composer.lock index d83cd93..a212108 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "43c96f9feee2bb8d8dc20f8ac83a2db8", + "content-hash": "bc6b4e541cacdab3dbc6bf0dc5bee7fc", "packages": [ { "name": "brick/math", @@ -1879,33 +1879,32 @@ }, { "name": "utopia-php/cache", - "version": "3.4.0", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/utopia-php/cache.git", - "reference": "5c292d4df156f8b008f29fa6b033834b906bf328" + "reference": "6f8cb03a5cb76e95b95a05103cd14cf782b8060f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/cache/zipball/5c292d4df156f8b008f29fa6b033834b906bf328", - "reference": "5c292d4df156f8b008f29fa6b033834b906bf328", + "url": "https://api.github.com/repos/utopia-php/cache/zipball/6f8cb03a5cb76e95b95a05103cd14cf782b8060f", + "reference": "6f8cb03a5cb76e95b95a05103cd14cf782b8060f", "shasum": "" }, "require": { "ext-json": "*", - "ext-memcached": "*", - "ext-redis": "*", - "php": ">=8.3", - "utopia-php/circuit-breaker": "0.3.*", - "utopia-php/pools": "1.*", - "utopia-php/telemetry": "*" + "php": ">=8.4", + "utopia-php/circuit-breaker": "^0.3", + "utopia-php/pools": "^2.0", + "utopia-php/telemetry": "^0.4" }, "require-dev": { - "laravel/pint": "1.2.*", - "phpstan/phpstan": "^1.12", - "phpunit/phpunit": "^9.3", - "swoole/ide-helper": "^6.0", - "vimeo/psalm": "4.13.1" + "swoole/ide-helper": "^6.0" + }, + "suggest": { + "ext-memcached": "Required for the Memcached and Hazelcast adapters.", + "ext-redis": "Required for the Redis, RedisCluster and Sharding adapters.", + "ext-swoole": "Required for the multiplexing Redis adapter (>=6.0)." }, "type": "library", "autoload": { @@ -1917,6 +1916,12 @@ "license": [ "MIT" ], + "authors": [ + { + "name": "Team Appwrite", + "email": "team@appwrite.io" + } + ], "description": "A simple cache library to manage application cache storing, loading and purging", "keywords": [ "cache", @@ -1927,9 +1932,9 @@ ], "support": { "issues": "https://github.com/utopia-php/cache/issues", - "source": "https://github.com/utopia-php/cache/tree/3.4.0" + "source": "https://github.com/utopia-php/cache/tree/4.0.1" }, - "time": "2026-07-01T15:44:35+00:00" + "time": "2026-08-04T00:06:02+00:00" }, { "name": "utopia-php/circuit-breaker", @@ -1995,16 +2000,16 @@ }, { "name": "utopia-php/client", - "version": "0.2.3", + "version": "0.3.0", "source": { "type": "git", "url": "https://github.com/utopia-php/client.git", - "reference": "377dc1f79441ac1584f25dba57904ee1cf0f626b" + "reference": "ee4c3429634f84c175e45f2a0c1836eaf78c2528" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/client/zipball/377dc1f79441ac1584f25dba57904ee1cf0f626b", - "reference": "377dc1f79441ac1584f25dba57904ee1cf0f626b", + "url": "https://api.github.com/repos/utopia-php/client/zipball/ee4c3429634f84c175e45f2a0c1836eaf78c2528", + "reference": "ee4c3429634f84c175e45f2a0c1836eaf78c2528", "shasum": "" }, "require": { @@ -2012,7 +2017,7 @@ "psr/http-client": "^1.0", "psr/http-factory": "^1.0", "psr/http-message": "^1.1 || ^2.0", - "utopia-php/pools": "^1.0", + "utopia-php/pools": "^2.0", "utopia-php/psr7": "^0.2", "utopia-php/span": "^1.1 || ^3.0 || ^4.0" }, @@ -2046,9 +2051,9 @@ ], "support": { "issues": "https://github.com/utopia-php/client/issues", - "source": "https://github.com/utopia-php/client/tree/0.2.3" + "source": "https://github.com/utopia-php/client/tree/0.3.0" }, - "time": "2026-07-13T15:29:09+00:00" + "time": "2026-07-31T08:38:16+00:00" }, { "name": "utopia-php/cloudevents", @@ -2104,16 +2109,16 @@ }, { "name": "utopia-php/pools", - "version": "1.1.1", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/utopia-php/pools.git", - "reference": "2c2ee1570a0b16b630671bfa72da5bc9ccf3ac21" + "reference": "48905dac1b8f8050c2e07bdda32a018ca33982fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/pools/zipball/2c2ee1570a0b16b630671bfa72da5bc9ccf3ac21", - "reference": "2c2ee1570a0b16b630671bfa72da5bc9ccf3ac21", + "url": "https://api.github.com/repos/utopia-php/pools/zipball/48905dac1b8f8050c2e07bdda32a018ca33982fc", + "reference": "48905dac1b8f8050c2e07bdda32a018ca33982fc", "shasum": "" }, "require": { @@ -2154,9 +2159,9 @@ ], "support": { "issues": "https://github.com/utopia-php/pools/issues", - "source": "https://github.com/utopia-php/pools/tree/1.1.1" + "source": "https://github.com/utopia-php/pools/tree/2.0.1" }, - "time": "2026-07-27T15:27:26+00:00" + "time": "2026-07-31T12:19:18+00:00" }, { "name": "utopia-php/psr7", @@ -2299,16 +2304,16 @@ "packages-dev": [ { "name": "laravel/pint", - "version": "v1.30.0", + "version": "v1.30.3", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "72a0540d1aa10b6c146bda2a22f3ae003123c0ea" + "reference": "19ca6de4ce07869f61f09863e37e81562ebc0a9b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/72a0540d1aa10b6c146bda2a22f3ae003123c0ea", - "reference": "72a0540d1aa10b6c146bda2a22f3ae003123c0ea", + "url": "https://api.github.com/repos/laravel/pint/zipball/19ca6de4ce07869f61f09863e37e81562ebc0a9b", + "reference": "19ca6de4ce07869f61f09863e37e81562ebc0a9b", "shasum": "" }, "require": { @@ -2320,7 +2325,7 @@ }, "require-dev": { "composer/semver": "^3.4.4", - "friendsofphp/php-cs-fixer": "^3.95.17", + "friendsofphp/php-cs-fixer": "^3.95.18", "illuminate/view": "^12.64.0", "larastan/larastan": "^3.10.0", "laravel-zero/framework": "^12.1.0", @@ -2365,7 +2370,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2026-07-28T20:48:56+00:00" + "time": "2026-08-02T01:28:21+00:00" }, { "name": "myclabs/deep-copy", @@ -2604,11 +2609,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.2.6", + "version": "2.2.7", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a6e9b5a9420f6109c091e87d82683bd1a80b87ed", - "reference": "a6e9b5a9420f6109c091e87d82683bd1a80b87ed", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/692db47b9dddb0487934e5236e77d48594aef921", + "reference": "692db47b9dddb0487934e5236e77d48594aef921", "shasum": "" }, "require": { @@ -2664,7 +2669,7 @@ "type": "github" } ], - "time": "2026-07-26T21:22:49+00:00" + "time": "2026-07-29T17:39:32+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/tests/Feed/Support/UsesPool.php b/tests/Feed/Support/UsesPool.php index b34937b..32d7d56 100644 --- a/tests/Feed/Support/UsesPool.php +++ b/tests/Feed/Support/UsesPool.php @@ -23,6 +23,9 @@ trait UsesPool /** The pool's connection count, and so the number of concurrent borrows it allows. */ protected const int POOL_SIZE = 4; + /** Seconds a borrow may wait for a free connection before the pool gives up. */ + protected const float POOL_TIMEOUT = 3.0; + /** @var UtopiaPool<\Redis|\RedisCluster>|null */ private ?UtopiaPool $pool = null; @@ -40,7 +43,7 @@ protected static function poolOver(Stack $adapter): UtopiaPool $redis->connect((string) (\getenv('REDIS_HOST') ?: 'redis'), (int) (\getenv('REDIS_PORT') ?: 6379)); return $redis; - }); + }, self::POOL_TIMEOUT); return $pool; }