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.