Ask Your Question

[Keystone] How and when does keystone clear token data in cache?

asked 2017-09-13 03:47:24 -0500

TenderDanger gravatar image

I have learned that keystone can store token data in cache. I am wondering whether keystone is going to clear token data from cache. If not, how to clear them?

As my effort to solve this problem, I use strace command to observe keystone process, I found that the commands sent by keystone to memcached(I used memcached as cache) didn't contain TTL information. Thus my question.

I later found that there is a cache_time config option in keystone.conf, which defaults to <none>. This rather confused me: Does keystone recommend that token data, when cached, shall not be cleared?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-09-16 17:28:17 -0500

It will be cleared when the token expires, but you can use cache_time to delete it earlier. See

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-09-13 03:43:26 -0500

Seen: 322 times

Last updated: Sep 16 '17