---
title: Agent Cache Mechanism
slug: kronpam-how-to-guides/agent-cache-mechanism
docTags: 
createdAt: 2025-03-18T12:06:25.248Z
---

The AAPM Agent is designed to securely manage passwords between applications. It enables&#x20;applications to access secure and dynamically updated passwords instead of hardcoded&#x20;credentials. This enhances security while centralizing password management.

The agent functions as a layer between the application and the Kron PAM Password Vault. It can&#x20;be installed on Linux and Windows environments or deployed as a container on Kubernetes &&#x20;OpenShift platforms.

To report its operational status, the agent communicates with Kron PAM at regular intervals via&#x20;heartbeat logs. This allows the agent’s status to be monitored directly from Kron PAM.

Instead of sending every request to Kron PAM, the agent utilizes a caching mechanism to serve&#x20;requests based on stored cache data. The cache duration is determined by the application’s&#x20;request. When an application requests access to an account, the agent retrieves the password&#x20;from the Kron PAM Password Vault on the first request. Subsequent requests are then served&#x20;directly from the agent’s cache.

The validity status of the cached password is checked based on configurable parameters. There&#x20;are two modes for status validation. The first is **Regular mode**, which periodically verifies the&#x20;password's validity at set intervals. The second is the **Intensive mode**, which increases the&#x20;frequency of validation checks as the password change time approaches. Both modes can be&#x20;adjusted based on parameterized time intervals. The transition to Intensive mode is determined&#x20;by th&#x65;**&#x20;bufferInSeconds** parameter.

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/eDyflv6SxOK2cZLDrEdz__image.png "Password Status Check")

