jacekolszak/EggFramework — Issue #6: Helpers invocation caching
Author: jacekolszak
Created: 2011-10-19 23:27:21+00:00
State: open

Some helper methods are deterministic meaning that if you pass the same arguments the result will be always the same (no matter of current database state, actual time or something else). It will be useful for programmer to specify which methods are deterministic (using an annotation @Cache for example) and Egg Framework will cache results of these methods. Next invocation will return the result from cache. Caching should be implemented in many ways - for instance it should be able to cache internally in-memory or outside in memcached. It should be easy to track what is the cache size and the hit ratio. Based on these numbers developer will be able to decide if caching is really needed.