QA output created by 341
load without save, store a couple and save ...
load() -> -2 No such file or directory
store(eek) -> 0
store(urk) -> 1
After cache_save hstate={DIRTY_INSTANCE}
pmdaCacheDump: indom 0.123: nentry=2 ins_mode=0 hstate=0 hsize=16
          0    active (nil) eek
          1    active (nil) urk
save() -> 2

store one, load, store another couple and save ...
store(eek) -> 0
After PMDA_CACHE_LOAD
pmdaCacheDump: indom 0.123: nentry=2 ins_mode=0 hstate=3 hsize=16
          0    active (nil) eek
          1  inactive (nil) urk
load() -> 2
store(urk) -> 1
store(foo) -> 2
After cache_save hstate={DIRTY_INSTANCE}
pmdaCacheDump: indom 0.123: nentry=3 ins_mode=0 hstate=0 hsize=16
          0    active (nil) eek
          1    active (nil) urk
          2    active (nil) foo
save() -> 3
pmdaCacheDump: indom 0.123: nentry=3 ins_mode=0 hstate=0 hsize=16
          0    active (nil) eek
          1    active (nil) urk
          2    active (nil) foo
inst hash
 [000] -> 0
 [001] -> 1
 [002] -> 2
 [003]
 [004]
 [005]
 [006]
 [007]
 [008]
 [009]
 [010]
 [011]
 [012]
 [013]
 [014]
 [015]
name hash
 [000]
 [001]
 [002]
 [003]
 [004]
 [005]
 [006] -> 2
 [007] -> 1
 [008] -> 0
 [009]
 [010]
 [011]
 [012]
 [013]
 [014]
 [015]

store some, hide some, load ...
store(eek) -> 0
store(urk) -> 1
store(foo) -> 2
store(fumble mumble) -> 3
hide(eek) -> 0
hide(foo) -> 2
store(bar) -> 4
After PMDA_CACHE_LOAD
pmdaCacheDump: indom 0.123: nentry=5 ins_mode=0 hstate=3 hsize=16
          0  inactive (nil) eek
          1    active (nil) urk
          2  inactive (nil) foo
          3    active (nil) fumble mumble [match len=6]
          4    active (nil) bar
load() -> 3
pmdaCacheDump: indom 0.123: nentry=5 ins_mode=0 hstate=3 hsize=16
          0  inactive (nil) eek
          1    active (nil) urk
          2  inactive (nil) foo
          3    active (nil) fumble mumble [match len=6]
          4    active (nil) bar
inst hash
 [000] -> 0I
 [001] -> 1
 [002] -> 2I
 [003] -> 3
 [004] -> 4
 [005]
 [006]
 [007]
 [008]
 [009]
 [010]
 [011]
 [012]
 [013]
 [014]
 [015]
name hash
 [000]
 [001]
 [002]
 [003]
 [004]
 [005] -> 3
 [006] -> 2I
 [007] -> 1
 [008] -> 0I
 [009]
 [010]
 [011] -> 4
 [012]
 [013]
 [014]
 [015]

error case ...
store(urk a bit tricky) -> 0
store(foo) -> 1
pmdaCache: store: indom 0.123: instance 0  in cache, name "urk a bit tricky" does not match new entry "eek"
[DATE] pmdacache(PID) Warning: pmdaCacheOp: $PCP_VAR_DIR/config/pmda/0.123: loading instance 0 ("eek") ignored, already in cache as 0 ("urk a bit tricky")
pmdaCache: store: indom 0.123: instance 1  in cache, name "foo" does not match new entry "urk"
[DATE] pmdacache(PID) Warning: pmdaCacheOp: $PCP_VAR_DIR/config/pmda/0.123: loading instance 1 ("urk") ignored, already in cache as 1 ("foo")
pmdaCacheStoreKey: indom 0.123: instance "foo" in cache, id 1 does not match new entry 2
[DATE] pmdacache(PID) Warning: pmdaCacheOp: $PCP_VAR_DIR/config/pmda/0.123: loading instance 2 ("foo") ignored, already in cache as 1 ("foo")
After PMDA_CACHE_LOAD
pmdaCacheDump: indom 0.123: nentry=2 ins_mode=0 hstate=3 hsize=16
          0    active (nil) urk a bit tricky [match len=3]
          1    active (nil) foo
load() -> 3
pmdaCacheDump: indom 0.123: nentry=2 ins_mode=0 hstate=3 hsize=16
          0    active (nil) urk a bit tricky [match len=3]
          1    active (nil) foo
inst hash
 [000] -> 0
 [001] -> 1
 [002]
 [003]
 [004]
 [005]
 [006]
 [007]
 [008]
 [009]
 [010]
 [011]
 [012]
 [013]
 [014]
 [015]
name hash
 [000]
 [001]
 [002]
 [003]
 [004]
 [005]
 [006] -> 1
 [007] -> 0
 [008]
 [009]
 [010]
 [011]
 [012]
 [013]
 [014]
 [015]
