acs::LockfreeCache method get (public)

 <instance of acs::LockfreeCache[i]> get -key key  var

Defined in

Get entry with the provided key from this cache if it exists. In most cases, the "eval" method should be used.

Switches:
-key (required)
cache key
Parameters:
var (required)
Returns:
return boolean value indicating success.

Testcases:
No testcase defined.
Source code:
if {[info exists ${:prefix}] && [dict exists [set ${:prefix}$key]} {
    :upvar $var value
    set value [dict get [set ${:prefix}$key]
    return 1
}
return 0
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: