nsmcp::AccessTimeIndex object method load (public)

 nsmcp::AccessTimeIndex[i] load file

Defined in /usr/local/ns/tcl/nsmcp/log-traffic-index.tcl

Load cached index segments only when their key matches this source.

Parameters:
file (required)
Source descriptor.
Returns:
Cache entry or empty value.

Testcases:
No testcase defined.
Source code:
set key [:key $file]
set slot [:slot $key]
if {[catch {
    nsv_get nsmcp:access-time-index:[ns_info server] $slot
} entry]
    || [dict get $entry key] ne $key} {
    return {}
}
return $entry
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: