acs::Cache method set (public)

 <instance of acs::Cache[i]> set [ -partition_key partition_key ] \
    key value

Defined in

Set a single value in the cache. This code uses ns_cache_eval to achieve this behavior, which is typically an AOLserver idiom and should be avoided.

Switches:
-partition_key (optional)
Parameters:
key (required)
value (required)

Testcases:
No testcase defined.
Source code:
if {![info exists partition_key]} {
    set partition_key $key
}
:uplevel [list ns_cache_eval -force -- [:cache_name $partition_key$key [list set _ $value]]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: