\Omega\Cache\Factory CacheFactory

Cache factory class.

The CacheFactory class is responsible for registering and creating cache drivers based on configurations. It acts as a factory for different cache drivers and provides a flexible way to connect to various caching systems.

Summary

Methods
Properties
Constants
create
No public properties found
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Methods

create()

create(?array  $config = null) : \Omega\Cache\Adapter\CacheAdapterInterface

Creates and returns an instance of an object based on the provided configuration.

Parameters

?array $config

Holds an optional configuration array that may be used to influence the creation of the object. If no configuration is provided, default settings may be applied.

Throws

\Omega\Cache\Exception\UnsupportedAdapterException

if the adapter is not defined.

Returns

\Omega\Cache\Adapter\CacheAdapterInterface —

Return the created object or value. The return type is flexible, allowing for any type to be returned, depending on the implementation.