You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FEATURE][BC-BREAK] Add possibility to cache schema IDs by hash (#11)
This is needed because when running serializers the cost of hashing the
schemas' string representations is way less than going to the registry
over HTTP.
This adds 3 new methods to the `CacheAdapter` API:
`cacheSchemaIdByHash(int $schemaId, string $schemaHash)`
`getIdWithHash(string $hash)`
`hasSchemaIdForHash(string $schemaHash)`
Unfortunately this is a BC breaking change which requires clients that
possibly have own implementations of the `CacheAdapterInterface` to
implement those 3 methods.
Clients that use the default shipped adapters are OK.
Implements the new caching features in the `CachedRegistry`
0 commit comments