- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::acs::KeyPartitionedCache
::acs::KeyPartitionedCache create ... \Partitioned cache, where the partition numbers are computed via a modulo function from the numeric keys.
[ -default_size (default "100KB") ] \
[ -maxentry:integer maxentry:integer ] \
[ -name name ] \
[ -package_key:required package_key:required ] \
[ -parameter:required parameter:required ] \
[ -partitions:integer (default "1") ] \
[ -timeout (default "5m") ]
Defined in packages/acs-tcl/tcl/acs-cache-procs.tcl
Class Relations
::nx::Class create ::acs::KeyPartitionedCache \ -superclass ::acs::PartitionedCacheMethods (to be applied on instances)
flush_pattern (scripted, public)
<instance of acs::KeyPartitionedCache> flush_pattern \ -partition_key partition_key patternFlush just in the determined partition
- Switches:
- -partition_key (required, integer)
- Parameters:
- pattern (required)
- Testcases:
- No testcase defined.
next
set (scripted, public)
<instance of acs::KeyPartitionedCache> set \ -partition_key partition_key key valueSet 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 (required, integer)
- Parameters:
- key (required)
- value (required)
- Testcases:
- No testcase defined.
next
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables