TeskaLabs / seacat-auth

SeaCat Auth provides authentication, authorization, identity management, session management and other access control features.
GNU General Public License v3.0
11 stars 6 forks source link

Client cache #361

Closed byewokko closed 2 months ago

byewokko commented 2 months ago

closes #306

Client metadata are accessed frequently, but they don't change too often. It makes sense to cache them to lower the number of database requests.

Default cache expiration is 30 seconds, it can be configured using the following option:

[seacatauth:client]
cache_expiration=5m

Expired cache entries are deleted every 10 minutes.

Cache is used only for get-client-detail calls, not for get-client-list.