Added cache decorator

https://gist.github.com/artpard/1a48d266c76c894fb4d3