UnhashableType : Cannot hash object of type re.Pattern
The function cached is:
def get_config(filename=None, appname=‘your name’):
which returns a ConfigParser object. Which I do want cached!
The hash_funcs noop works
@st.cache(hash_funcs={re.Pattern: lambda _: None})