fixed Cache\StorageFactory::factory()

Fixes #4445

`Cache\StorageFactory::factory()`: Allow to pass adapter as string with an options array