Skip to content

Allow storing value field in binary format - #40

Open
vitkutny wants to merge 1 commit into
RikudouSage:masterfrom
vitkutny:value-field-binary
Open

Allow storing value field in binary format#40
vitkutny wants to merge 1 commit into
RikudouSage:masterfrom
vitkutny:value-field-binary

Conversation

@vitkutny

@vitkutny vitkutny commented Aug 5, 2026

Copy link
Copy Markdown

DynamoDB has limited item size and its more efficient to store cacheed data in binary format. I have added opt-in argument $valueFieldBinary to not break BC.

We are using this together with custom CacheItemEncoderInterface:

  • first encoder is using igbinary_serialize to serialize php structures into binary string
  • second encoder takes this string and compresses these data further using GZ resulting again in binary string

Now we can use these together with $valueFieldBinary se to true

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