When you have microflows that do a lot of retrieves of the same entity you can use this module to reduce the number of database queries by storing them in the cache. The Entity Cache module supports multiple entities but only stores one per type (like 1 systemsettings object, 1 emailsettings object etc).
The test module has some unit tests that prove the performance of this module.
11 ms for 1000 retrieves from cache vs 2476 ms for 1000 database retrieves!

- JA_ReplaceEntityInCache
- JA_RetrieveEntityFromCache
- JA_RemoveEntityFromCache
Use this pattern to make sure you always have a correct object (either from the cache, from the database or, the newly created object).
