platform/managed-cache/module-info.md
ManagedCache is an interface that has a standardized, project-scoped caching mechanism for persistent binary data with versioning support.
Currently, there are two implementations of ManagedCache:
So, it could be used in Local and Remote development scenarios with the same API.
ManagedCache could be used for persistent caching binary-serializable project-wide data, when the versioning is needed for backward compatability.
ManagedCache could be constructed via ManagedCacheFactory.createCache method.
It accepts a cache name, (de-)serializers for key and value, a current version of the (de-)serialization protocol.
The version should be incremented on any change in the serialization protocol, e.g., adding a new field or changing the type of the existing one.
The current only usage of ManagedCache is GraveImpl, which uses ManagedCache as an abstraction for storing caches.