RAM Provider
The RAM provider leverages memory allocation for its file-system
Use the RAM provider to store files within available RAM.
The trade-off with the RAM provider is that IO operations will be performed incredibly fast, but you are limited to the available RAM that's been allocated to run your CFML application.
config/ColdBox.cfc
moduleSettings = {
"cbfs": {
// The default disk with a reserved name of 'default'
"defaultDisk" : "myStorage",
// Register the disks on the system
"disks" : {
// Your default application storage
"myStorage" : {
"provider" : "RAM",
"properties" : {}
}
}
},
};
When configuring your RAM disks, the following properties are available:
Property | Type | Default | Description |
---|---|---|---|
uploadMimeAccept | string | * | The mime types which are accepted via the upload method. Defaults to all. |
Last modified 8mo ago