[2796] Added cache and locker decorator.

https://gist.github.com/add00/df92753e832fdc5d1e9d#file-gistfile1-txt