Skip to content

Cache support#33

Merged
osteel merged 1 commit intomainfrom
feature/caching
Jun 19, 2023
Merged

Cache support#33
osteel merged 1 commit intomainfrom
feature/caching

Conversation

@osteel
Copy link
Owner

@osteel osteel commented Jun 19, 2023

Summary

This PR brings cache support to the package.

Explanation

The OpenAPI PSR-7 Message Validator package has native support for PSR-6 caching. Following a similar logic as for the HTTP message adapter, this PR adds a cache adapter that converts PSR-16 cache objects to PSR-6 ones (or that returns the object as is if it's already an instance of the latter).

The PR introduces a couple of breaking changes:

  • It renames AdapterInterface for MessageAdapterInterface; and
  • It renames the setAdapter method of the ValidatorBuilder class for setMessageAdapter.

Checklist

  • I have provided a summary and an explanation
  • I have reviewed the PR myself and left comments to provide context
  • I have covered the changes with tests as appropriate
  • I have made sure static analysis and other checks are successful

@osteel osteel force-pushed the feature/caching branch 6 times, most recently from f7d16dd to 7cbb6b6 Compare June 19, 2023 11:47
@osteel osteel force-pushed the feature/caching branch from 7cbb6b6 to 29f1e53 Compare June 19, 2023 12:57
@osteel osteel marked this pull request as ready for review June 19, 2023 12:59
@osteel osteel merged commit bf6c52f into main Jun 19, 2023
@osteel osteel deleted the feature/caching branch June 19, 2023 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments