devMX/TeamSpeak3-Library-dev — pull request #39 by drak3 (2012-04-03 19:34:01+00:00)
Title: [Query] Rewritten CachingDecorator

What this PR contains:
- Reworked CachingDecorator implementing a basic caching strategy: "delayable" commands are delayed until the first command MUST be sent ("cacheable" commands are cached as before) (#38)
- A proxy to a Doctrine/Common caching-handler so we don't have to provide one on our own (old implemtations are deleted (#24 #16)
- Unittests (#20)

What this PR does not contain:
- A fix for #37 (will need an additional PR)
- More sophisticated caching strategies (imagine a scenario where a user switches the virtualserver after a clientlist and then sends the next clientlist command, here he will get the data of the first server)
- Integration with the SimpleFactory
- Default values for cacheableCommands and delayableCommands (I'm waiting for #33 to be merged as I would place this values at the CommandAwareQuery)
- A implementation of an ArrayCache which could be provided as default in the SimpleFactory (should we use the DoctrineCache here?)