acs::Cache method get (public)

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

Defined in packages/acs-tcl/tcl/acs-cache-procs.tcl

The "get" method retrieves data from the cache. It should not be used for new applications due to likely race conditions, but legacy applications use this. As implementation, we use the AOLserver API emulation.

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

Testcases:
No testcase defined.
Source code:
if {![info exists partition_key]} {
    set partition_key $key
}
return [ns_cache get [:cache_name $partition_key$key]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: