This post if part of a series about the File System Toolkit - a custom content delivery API for SDL Tridion. This post describes the Cache Factory the Toolkit uses to store commonly used models. The factory interfaces with an underlying EHCache instance named ' toolkit-cache '. Configuring the cache is possible either using a ehcache.properties file present at run-time in the application's class-path, or in the Toolkit configuration file toolkit.properties . Configuring the Toolkit cache is described in post Installation and Configuration . Creating an EHCache programmatically is described in post Create an EHCache Programmatically . The Cache Factory is used mainly by the Model Factory in its interaction with storing/retrieving JSON models. The factory provides three main operations: get, put, remove. The EHCache stores CacheElement generic objects that are simply Java beans around properties: payload of generic type and a last-check timestamp used in deter...
talk is cheap. show me the code.