[4855] Added decorators for caching data and locking function.
Merge pull request #7 from 8r2y5/bug_4855

[4855] Added decorators for caching data and locking function.