moneta-rb / moneta

a unified interface to key/value stores
https://github.com/moneta-rb/moneta
MIT License
1.11k stars 87 forks source link

Replace transformer code #241

Closed asppsa closed 11 months ago

asppsa commented 1 year ago

The old Moneta::Transformer implementation made extensive use of evaled code, which made it pretty hard to understand and debug.

There was also at least one fairly major issue with the each_key support when using serializer transformers, which really should have meant that these transformers didn't support each_key.

This change is breaking, as it:

That said, it should be safe to upgrade from a data perspective - existing store data should still be accessible.