Skip to content

Commit

Permalink
Merge pull request #252 from bowphp/247-5x-create-a-redis-support-as-…
Browse files Browse the repository at this point in the history
…a-database
  • Loading branch information
papac authored Jun 7, 2023
2 parents 51df925 + 2456694 commit 9f7b9f6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,19 @@ public static function cache(string $store): CacheAdapterInterface
return static::$instance;
}

/**
* Add the custom adapters
*
* @param array $adapters
* @return void
*/
public static function addAdapters(array $adapters): void
{
foreach ($adapters as $name => $adapter) {
static::$adapters[$name] = $adapter;
}
}

/**
* __call
*
Expand Down

0 comments on commit 9f7b9f6

Please sign in to comment.