Commit Graph
11 Commits
Author SHA1 Message Date
Amit Snyderman ae138efb47 Fix broken build 2013-09-06 13:34:01 -04:00
Amit Snyderman a83ecd70aa Set logger for cache if not explicitly set 2013-09-06 11:50:04 -04:00
Amit Snyderman 1937752519 Use class name as cache key 2013-09-06 09:16:40 -04:00
Amit Snyderman 8894d68482 Use existing temp directory for test 2013-09-06 09:16:15 -04:00
Amit Snyderman 689be14d0f Invalid documentation 2013-09-06 09:06:26 -04:00
Amit Snyderman 724cd60cac Restore logging for cache operations
`AbstractCache` exposes the ability to set a logger. Default behavior
automatically passes the logger reference down to the cache, unless a
specific cache instance was provided.
2013-09-05 19:22:13 -04:00
Amit Snyderman 94cd72bfd4 Restore original eval vs. require class loading
Pushing the responsibility of class loading onto the `Mustache_Cache`
implementation and changing the semantics of get/put to load/cache.
2013-09-05 18:56:43 -04:00
Amit Snyderman 71eaed2778 Cleanup cache initialization from options 2013-09-05 18:16:00 -04:00
Amit Snyderman 3e876fd984 Fix build - explicit config key check 2013-09-05 17:30:28 -04:00
Amit Snyderman 60338e4956 Extract cache interface
Refactoring to allow for alternative cache implementations. Includes
implementations for the default noop (i.e. un-cached) behavior and a
filesystem-based cache whose configuration is consistent with the
existing Mustache_Engine constructor.

Includes updated and new tests.
2013-09-05 17:07:38 -04:00
Amit Snyderman 6634f44ca6 Explicitly set timezone to UTC for tests 2013-09-05 14:23:23 -04:00