Flask-cache use function parameters to generate cache key, however it makes different keys for long and int type parameters:
@cache.memoize(3600)
def foo(a):
return a
foo(1)
and foo(1L)
will generate different cache keys, what could I do to assign their return value to a same cache key?