MY application starts up. There is a normal java class that initializes my cache and adds all the nodes to TreeCache, starts the TreeCache service... I can access my data using this structure. Everythig works fine.
I need this cache, however, to be automatically refreshed every 2 hours. The data is contained in a database. I have a datasource setup for this.
I am unable to understand how a Cache Loader fits into my scenario. Can i use one? Can I configure it to -
i) start after my application has started up ii) refresh everything after 2 hours?