use SugarCache
use switch instead of $methodName
Merge pull request #34 from yurikuzn/fixes

Use switch instead of $methodName and use SugarCache