[2796] Added cache and locker decorator.
[2796] Changed cache decorator to use one dict.
[2796] Removed unnecessary comment in tests.
Merge pull request #8 from add00/bug_2796

[2796] Added cache and locker decorators.