Hi everyone, had a question rolling around in my head for a few days now and I can't seem to come up with a good solution and am looking for suggestions.
If a person were to implement Inside Out classes as described in Conway's Perl Best Practices, how does one implement caching of the individual objects with something like Cache::FastMMap or Cache::Memcached?
Because of the nature of the inside out object, it is just a unique indentifier and caching it isn't very useful, the associated data is what needs to be cached.
What I'm looking for specifically is not so much to avoid the cycles creating the object, but to avoid unnecessarily hitting a database or other storage to retrieve the data if it is cached.
Any ideas?
Frank Wiles <frank@wiles.org>
http://www.wiles.org
In reply to Inside Out Classes with caching by ides
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |