flask-cache icon indicating copy to clipboard operation
flask-cache copied to clipboard

Question: First GET then SETEX

Open pythonios opened this issue 8 years ago • 1 comments

Hi Is it normal that on every request which is made to flask cache it will trigger first a GET and after a SETEX? (Monitored via redis-cli monitor)

Thanks in advance just want to make sure that its really read from the cache.

pythonios avatar Aug 09 '17 01:08 pythonios

For example:

1502243500.965786 [1 127.0.0.1:44768] "GET" "flask_cache_latest_group"
1502243500.967267 [1 127.0.0.1:44768] "SETEX" "flask_cache_latest_group" "3600" "!\x80\x03N."

Caching of that function the GET method is always followed by a SETEX

pythonios avatar Aug 09 '17 01:08 pythonios