---
name: "atcache"
section: "3"
platform: "linux"
package: "atfs-dev"
version: "1.4pl6-15+b1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/atcache"
---

# atcache(3)

derived object cache handling

## NAME

atSaveCache, atCacheKey - derived object cache handling

## SYNOPSIS

\#include \<atfs.h\>\
 \#include \<atfstk.h\>

int	atSaveCache (Af\_key \*aso, Af\_key \*cachedAso, char \*uniqAttribute, int storeType);

char\*	atCacheKey (Af\_key \*aso);

## DESCRIPTION

*atSaveCache* adds the given busy object *aso* to the current derived object cache. It does this by calling af\_savecache (manual page [af\_cache(3)](/af_cache/3.md)). Prior to that, atSaveCache attaches a key attribute with the name *\_\_CacheKey\_\_* to *aso*, by which the resulting cached object can be uniquely identified within the cache. Return values are the same as from af\_savecache (manual page [af\_cache(3)](/af_cache/3.md)).

*atCacheKey* returns an attribute string consisting of the attribute name *\_\_CacheKey\_\_* and an attribute value built of the *aso* modification date, the process number and a (per process unique) serial number. This attribute can (and will) be used to uniquely identify attributed software objects in derived object caches.

## SEE ALSO

[af\_cache(3)](/af_cache/3.md)
