|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.FrameworkSupertype
coldbox.system.Plugin
coldbox.system.plugins.ClusterStorage
public class ClusterStorage
Cluster Storage plugin. It provides the user with a mechanism for permanent data storage using the Cluster scope. This plugin creates a special variable in cluster scope that correctly identifies the coldbox app.
| Constructor Summary | |
|---|---|
init(any controller)
|
|
| Method Summary | |
|---|---|
void |
clearAll()
Clear the entire coldbox cluster storage |
private void |
createStorage()
Create the storage scope |
boolean |
deleteVar(string name)
Tries to delete a permanent cluster variable |
boolean |
exists(string name)
Checks wether the permanent variable exists |
struct |
getStorage()
Get the entire storage scope structure |
any |
getVar(string name, [any default=''])
Get a new permanent variable |
void |
removeStorage()
remove the entire storage from scope |
private any |
safeName(any value)
Make a variable a safe var name |
void |
setVar(string name, any value)
Set a new permanent variable |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(any controller)
controller - coldbox.system.web.Controller| Method Detail |
|---|
public void clearAll()
private void createStorage()
public boolean deleteVar(string name)
name - The variable name to retrieve.public boolean exists(string name)
name - The variable name to retrieve.public struct getStorage()
public any getVar(string name, [any default=''])
name - The variable name to retrieve.default - The default value to set. If not used, a blank is returned.public void removeStorage()
private any safeName(any value)
value - The value to make it var safepublic void setVar(string name, any value)
name - The name of the variable.value - The value to set in the variable.
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||