Skip to content

Add partition cache strategy (GONRG-6708)

Yurii Ruban [EPAM / GCP] requested to merge add-partition-cache-strategy into master

Description:

Сaching strategies EXPIRE_AFTER_WRITE and EXPIRE_AFTER_ACCESS are possible for partition info. Strategy EXPIRE_AFTER_ACCESS has been used before. The cache time count started from the last cache access.

I will change to strategy EXPIRE_AFTER_WRITE. The cache will be updated every minute.

How to test:

  1. send GET groups request to entitlements
  2. update Partition info via Partition PATCH request
  3. wait 60 seconds
  4. send new GET group request
  5. look at the Partition info, it should contain the updated value

Changes include:

  • Bugfix (a non-breaking change that solves an issue).

Changes in:

  • GCP
Edited by Yurii Ruban [EPAM / GCP]

Merge request reports