If you want to create I more flexible decorator than I think you should take into account not only function name but also parameters (args, kwargs) when calculating key for cache