cbfs
  • Introduction
  • Intro
    • Release History
    • About This Book
  • Getting Started
    • Installation
    • Providers
      • Local Provider
      • RAM Provider
      • S3 Provider
  • Usage
    • Disk Service
    • Disk Usage
      • Configuration Methods
      • File Methods
      • File Object
      • Directory Methods
      • Utility Methods
      • Stream Methods
      • Verification Methods
  • Digging Deeper
    • Interceptors
    • Module Disks
    • Custom Providers
Powered by GitBook
On this page
  • Configuration
  • Example
  • Properties

Was this helpful?

Edit on GitHub
Export as PDF
  1. Getting Started
  2. Providers

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.

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.

PreviousLocal ProviderNextS3 Provider

Last updated 2 years ago

Was this helpful?