Generalized plugable caching pattern?
Posted
by BCS
on Stack Overflow
See other posts from Stack Overflow
or by BCS
Published on 2010-04-27T16:21:44Z
Indexed on
2010/04/27
16:23 UTC
Read the original article
Hit count: 300
Given that it's one of the hard things in computer science, does anyone know of a way to set up a plugable caching strategy?
What I'm thinking of would allow me to write a program with minimal thought as to what needs to be cached (e.i. use some sort of boiler-plate, low/no cost pattern that compiles away to nothing anywhere I might want caching) and then when things are further along and I know where I need caching I can add it in without making invasive code changes.
As an idea to the kind of solution I'm looking for; I'm working with the D programing language (but halfway sane C++ would be fine) and I like template.
© Stack Overflow or respective owner