Skip to content

Conversation

@basert
Copy link
Contributor

@basert basert commented Mar 19, 2025

Usage:

return $pools->use(
    [$dsn->getHost(), ...Config::getParam('pools-cache')],
    function (DatabaseAdapter $adapter, CacheAdapter ...$cacheAdapters) use ($callback, $project, $dsn) {
        $database = new Database($adapter, new Cache(new Sharding($cacheAdapters)));
        $callback($database)
    });

@abnegate abnegate merged commit 6073392 into main Mar 19, 2025
3 checks passed
@abnegate abnegate deleted the PLA-2606 branch March 19, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants