Functional programming is a paradigm of building computer programs using expressions and functions without mutating state and data. In the previous two PRs, the code added was only on implementing the new feature(added support of protobuf encoded cache) but the code wasn't written in functional programming style.This PR is based on re-factoring the code in a functional programming paradigm.The protobuf encoder and decoder for shipped to codec for reusability.
Also till now, basic datatypes are not supported as mediaTypes for the cache configured in application/x-protostream (only protobuf message instances are supported). This PR extends the protobuf encoder and decoder to support basic datatypes also.
Now integer, string , character , boolean can be used as key or values for cache configured with application/x-protostream.
Also tests for GET and PUT operations with basic datatypes are included.
Next task
[x] Add query operation without projection. related issue can be found here.
In this PR code is refactored
Functional programming is a paradigm of building computer programs using expressions and functions without mutating state and data. In the previous two PRs, the code added was only on implementing the new feature(added support of protobuf encoded cache) but the code wasn't written in functional programming style.This PR is based on re-factoring the code in a functional programming paradigm.The protobuf encoder and decoder for shipped to codec for reusability.
Also till now, basic datatypes are not supported as
mediaTypes
for the cache configured inapplication/x-protostream
(only protobuf message instances are supported). This PR extends the protobuf encoder and decoder to support basic datatypes also.Now
integer, string , character , boolean
can be used as key or values for cache configured withapplication/x-protostream
.Also tests for GET and PUT operations with basic datatypes are included.
Next task