%3 ::acs::KeyPartitionedCache ::acs::KeyPartitionedCache flush_pattern set ::acs::PartitionedCache ::acs::PartitionedCache cache_name flush_all flush_pattern_in_all_partitions init show_all ::acs::KeyPartitionedCache->::acs::PartitionedCache ::acs::Cache ::acs::Cache ::acs::PartitionedCache->::acs::Cache ::acs::HashKeyPartitionedCache ::acs::HashKeyPartitionedCache cache_name flush_pattern set ::acs::HashKeyPartitionedCache->::acs::KeyPartitionedCache

Class ::acs::KeyPartitionedCache

::acs::KeyPartitionedCache[i] create ... \
           [ -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") ]

Partitioned cache, where the partition numbers are computed via a modulo function from the numeric keys.
Defined in packages/acs-tcl/tcl/acs-cache-procs.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::acs::PartitionedCache[i]
  • subclass: ::acs::HashKeyPartitionedCache[i]
::nx::Class create ::acs::KeyPartitionedCache \
     -superclass ::acs::PartitionedCache

Methods (to be applied on instances)

  • flush_pattern (scripted, public)

     <instance of acs::KeyPartitionedCache[i]> flush_pattern \
        -partition_key partition_key  pattern

    Flush 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[i]> set \
        -partition_key partition_key  key value

    Set 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