Redis cache with Flask-Caching doesn't change the value of key when argument of function change

Hello.
When im using Flask-Caching with redis value of key doesn’t update when function args does change.
Flask config:

FLASK_CACHE_CONFIG = {

    'CACHE_TYPE': 'RedisCache',

    'CACHE_REDIS_URL': 'redis://localhost:6379',

    "CACHE_DEFAULT_TIMEOUT": 3600

}

Callback using cache:
@app.callback(

[Output('id', 'children'),

 Output('id', 'children')],

[

 Input('id, 'value'),

 Input('id, 'value'),

 Input('id, 'value')], prevent_initial_call=True)

@cache.cached(

key_prefix='key_prefix'

)

def function(x, y, z, q):

return 

When i run callback the redis key is created for default function arguments but when i change one of argument it should change the value saved in redis key but it does not.
How can i fix this or am i missunderstand the concept?