Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://764577]
help
Chatterbox?
[talexb]: Great quote from Re: (OT) Motivating the Unmotivated Programmer: "As Weinberg suggests, when a programmer becomes irreplaceable, it's time to replace him."
[jedikaiti]: SuicideJunkie++ #Apgrade is the highest point it will reach. They're informing you that it will all be downhill from here until the software hits a PEgrade, or impacts the terrain depending on the details of the orbit.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2017-07-25 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (377 votes). Check out past polls.