diff options
author | Daniel Gruno <humbedooh@apache.org> | 2013-04-19 10:46:28 +0200 |
---|---|---|
committer | Daniel Gruno <humbedooh@apache.org> | 2013-04-19 10:46:28 +0200 |
commit | 8049067196b215e8b82742ed5e6c8736791250fb (patch) | |
tree | b2900709f1586900aa80b785342f471f9fb9560f /docs/manual/mod/mod_lua.xml | |
parent | xforms (diff) | |
download | apache2-8049067196b215e8b82742ed5e6c8736791250fb.tar.xz apache2-8049067196b215e8b82742ed5e6c8736791250fb.zip |
Remove lua_ap_banner, as it's no longer being used.
Add ivm_get/ivm_set for Inter-VM data transfer. This allows multiple VMs across a process to share data without having to resort to external databases or filesystems. This is a work in progress, and I have yet to work out a proper way of resetting a variable without causing a memory leak (this could be done by allocating a new pool for each object, but I'm trying to see if there's a more efficient way). Comments, ideas etc are most welcome.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1469744 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_lua.xml')
-rw-r--r-- | docs/manual/mod/mod_lua.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/manual/mod/mod_lua.xml b/docs/manual/mod/mod_lua.xml index 203b9d2467..7765931aa4 100644 --- a/docs/manual/mod/mod_lua.xml +++ b/docs/manual/mod/mod_lua.xml @@ -889,6 +889,15 @@ r:dbacquire(dbType[, dbParams]) -- Acquires a connection to a database and retur -- See '<a href="#databases">Database connectivity</a>' for details. </highlight> +<highlight language="lua"> +r:ivm_set("key", value) -- Set an Inter-VM variable to hold a specific value. + -- These values persist even though the VM is gone or not being used, + -- and so should only be used if MaxConnectionsPerChild is > 0 + -- Values can be numbers, strings and booleans. + +r:ivm_get("key") -- Fetches a variable set by ivm_set. Returns the contents of the variable + -- if it exists or nil if no such variable exists. +</highlight> </section> |