Added support for shared cache to methodsFor*()