Help for this page

Select Code to Download


  1. or download this
    # $name is somehow derived from the object value we're storing.  The
    # details of that are (probably) unimportant.
    ...
    
    # remove from cache with possible collision:
    $value = $cache{$key_obj->object_ID() . $name};
    
  2. or download this
    # The name is keyed to the object we're using so if we have two differ
    +ent
    # types of objects with the same ID, we can differentiate.
    ...
    
    # remove from cache:
    @values = $cache->retrieve(tag => ref $key_obj . $key_obj->object_ID()
    +);