Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.maximem.ai/llms.txt

Use this file to discover all available pages before exploring further.

sdk.cache.clear()
clear() wipes the SDK’s in-process cache — every scope, every user, every customer. This affects only the local cache layer; durable memory stored on the Synap platform is untouched. The cache repopulates lazily on subsequent fetch() calls. Useful in tests, in long-running processes that need to drop stale entries, or when you want to force a fresh round-trip to the platform. This is a synchronous method — no await.

Parameters

This method takes no parameters.

Returns

Returns None.

Example

from maximem_synap import MaximemSynapSDK

sdk = MaximemSynapSDK(api_key="synap_your_key_here")

# Drop every locally-cached entry; the next fetch() will hit the platform.
sdk.cache.clear()

Raises

This method does not raise SDK errors. See Error Codes for the full SDK exception hierarchy.

See also