StaticcreateInstantiate and return the StorageAdapter for the given type.
Which backend to create. One of "in-memory", "sqlite",
"postgres", or "redis".
Connection options; only the key matching type is used.
A ready-to-init() StorageAdapter instance.
Static factory for creating StorageAdapter instances.
Centralises adapter construction so callers only need to supply a type string and a minimal options bag, rather than importing each adapter module individually.
Example