[2533] Created cache and locker decorator.

https://gist.github.com/kamilgrela/461e4e93b8d25e57a301
$ again.