Skip to main content

Module cache_file

Module cache_file 

Source

Constants§

CACHE_KEY_ENV
MAX_CACHE_DECODE_BYTES
MAX_CACHE_FILE_BYTES

Functions§

is_encrypted_cache_bytes
Identifies the safe-migrate encryption envelope without attempting to decrypt it. This supports safe metadata inspection without exposing key material or payload contents.
protect_cache_bytes
Encrypts an encoded cache when cache encryption is enabled. The on-disk envelope includes only a format marker and random nonce; the authenticated ciphertext contains all cache metadata.
read_cache_bytes
unprotect_cache_bytes
Returns plaintext encoded cache bytes. Encrypted files require both an enabled configuration and the environment-only key; authentication failures intentionally do not distinguish a wrong key from modified ciphertext.