RAM Provider

The RAM provider leverages memory allocation for its file-system

Use the RAM provider to store files within available RAM.

Configuration

Example

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" : {}
			}
		}
	},
};

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 updated

Was this helpful?