Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Testing objects that cache

by sgifford (Prior)
on May 18, 2009 at 04:20 UTC ( #764577=note: print w/ replies, xml ) Need Help??

in reply to Testing objects that cache

I have solved similar problems by exposing some useful but very limited bits of the cache internals through an API. For example, a method to keep a count of the number of cache hits and misses. With that, you can tell whether your test hit or missed the cache by comparing the counters before and after. I often find these sorts of methods useful for logging after the fact.

Comment on Re: Testing objects that cache

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://764577]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2015-11-26 20:30 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (707 votes), past polls