Methods

inline asyncQuery (connectionID:Int, query:String, params:Dynamic, func:ClientInfo ‑> List<Dynamic> ‑> Dynamic ‑> Void):Void

Sends SQL query to cache server for asynchronous execution and immediately returns.

Note: This method does not support multiple SQL queries separated by semicolons.

Parameters:

connectionID

Client connection ID to use in callback function. If the client with this connection ID is not found, the callback function will not be called.

query

SQL query string.

params

Additional parameters for the callback function.

func

Callback function. Can be null. Has the following arguments: client instance, list of query results, callback parameters object.

inline broadcast (type:String, msg:Dynamic):Void

Broadcasts a notification to all slave servers of the given type without waiting for responce. The notification will be added to the queue, the contents of which will be sent with the next message.

Server notifications are described in Notifications article.

Parameters:

type

Slave server type.

msg

Notification message. Should have the _type field that sets the notification type in the <module>.<method> format.

inline notify (msg:Dynamic):Void

Sends notification to cache server without waiting for response. The notification will be added to the queue, the contents of which will be sent with the next message.

Parameters:

msg

Notification parameters. Should have the _type field that sets the notification type in the <module>.<method> format.