cacheAs: Keeping results in a file of one's own

cacheAsR Documentation

Keeping results in a file of one's own

Description

The cacheAs parameter of the query functions is a different thing from the cache parameter of KorAPConnection(). The latter is a transparent speed-up: it stores server responses where the package finds them again, and throwing it away costs nothing but time. The former stores a finished result in a file the caller names and keeps, which is what makes an analysis reproducible: KorAP corpora grow, so the same query returns different numbers next year, and the scores computed from them may change with the package.

Details

A cache file therefore records what produced it, and is not reused when that no longer matches what is being asked for.


RKorAPClient documentation built on Sept. 9, 2026, 5:11 p.m.