Kaya 0.5.2 reference for Webapp::storeFunction

List of functions and data types in Webapp

String storeFunction(String(String) storer, b(a) fn, a state)

Arguments

Usage

This lets you save application state and a handler function to an external source, and get a key to retrieve it later. The storage function should throw an exception if it is unable to store the state. Otherwise it should return a key that can be used with retrieveFunction to execute the state later. This lets you make URLs much shorter than is possibly by passing the state directly.

You may need to consider expiring old and unused states from your persistent storage if they have not been retrieved for some time.

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya