- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::acs::HashKeyPartitionedCache
::acs::HashKeyPartitionedCache create ... \Partitioned cache, where the partition numbers are computed via a hash function. Key-partitioning is based on a modulo function using a special partition_key, which has to be numeric
[ -default_size (default "100KB") ] \
[ -maxentry:integer maxentry:integer ] \
[ -name name ] \
[ -package_key:required package_key:required ] \
[ -parameter:required parameter:required ] \
[ -partitions:integer (default "2") ] \
[ -timeout (default "5m") ]
Defined in packages/acs-tcl/tcl/acs-cache-procs.tcl
Class Relations
::nx::Class create ::acs::HashKeyPartitionedCache \ -superclass ::acs::KeyPartitionedCacheMethods (to be applied on instances)
flush_pattern (scripted, public)
<instance of acs::HashKeyPartitionedCache> flush_pattern \ -partition_key partition_key patternflush just in all partitions
- Switches:
- -partition_key (required)
- Parameters:
- pattern (required)
- Testcases:
- No testcase defined.
:flush_pattern_in_all_partitions $pattern
set (scripted, public)
<instance of acs::HashKeyPartitionedCache> set \ -partition_key partition_key key valueSet a single value in the cache. It transforms the partition key into a hash value. This code uses ns_cache_eval to achieve this behavior, which is typically an AOLserver idiom and should be avoided.
- Switches:
- -partition_key (required)
- Parameters:
- key (required)
- value (required)
- Testcases:
- No testcase defined.
next [list -partition_key [ns_hash $partition_key] $pattern]
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables