Template design pattern in action part1

So finally I got time to complete the blog 🙂 I’ll discuss about how we can solve the problem using templating design pattern. So what we have done, we have written a Template class “CacheTemplate” having a method getCachedData. getCachedData takes 2 parameters key: Key for which we have data cached cacheCallback: If we don’t …

Design a site like this with WordPress.com
Get started