Design cache mechanism
        Posted  
        
            by 
                Delashmate
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Delashmate
        
        
        
        Published on 2010-12-25T16:45:27Z
        Indexed on 
            2010/12/25
            16:54 UTC
        
        
        Read the original article
        Hit count: 195
        
Hi All,
I got assignment to write design for cache mechanism, This is my first time writing a design document, Our program display images for doctors, and we wan't to reduce the parsing time of the images So we want to save the parsed data in advance (in files or inside database)
Currently I have several design key ideas Handle locks - each shared data structure should be handled, also files Test - add test to verify the data from the cache is equal to the data from the files To decouple the connection to the database- not to call directly to the database Cleanup mechanisem- to delete old files if the cahce directory exceed configurable threshold Support config file Support performance tool in the feature
I will also add class diagram, data flow charts, and workflow
What do you think I should add to the key ideas? Do you know good link to atricales about design?
Thanks in advance, Dan
© Stack Overflow or respective owner