Why does calling get () in memcache increase the number of items in the Google App Engine?

I am viewing the Memcache Viewer application in my admin console in my deployed Google App Engine NDB application. For testing, I use a remote api. I am doing something very simple: memcache.get('somekey') . For some reason, every time I call this line and click update in my statistics, the number of items increases by 2. This happens regardless of whether or not the key exists in memcache.

Any ideas why this might happen? This is normal?

+4
source share
1 answer

memcache.get should not increase the number of items in memcache statistics, and I cannot reproduce this behavior during production.

The memcache statistics page is global, so if you have other requests (in real time or via a task queue) that will arrive in your application simultaneously using a remote api, this can increase this score.

+1
source

Source: https://habr.com/ru/post/1444130/


All Articles