Packages@robojs/mock
createStorage()
Function: createStorage()
function createStorage(config): AttachmentStorageFactory function to create a storage backend from configuration.
Parameters
| Parameter | Type | Description |
|---|---|---|
config | StorageConfig | Storage configuration |
Returns
A storage backend instance
Example
// Create in-memory storage (default)
const storage = createStorage({ type: 'memory' })
// Future: Create S3 storage
const storage = createStorage({
type: 's3',
options: { bucket: 'my-bucket', region: 'us-east-1' }
})