phalcon / cphalcon

High performance, full-stack PHP framework delivered as a C extension.
https://phalcon.io
BSD 3-Clause "New" or "Revised" License
10.79k stars 1.96k forks source link

[#16606] - feat: added events and events manager to storage and cache classes #16607

Closed noone-silent closed 5 months ago

noone-silent commented 5 months ago

Hello!

In raising this pull request, I confirm the following:

Small description of change: See title

Thanks

noone-silent commented 5 months ago

This is the first implementation. Currently we have to add it to every class. I will refactor it later so that Phalcon\Storage\AbstractAdapter holds all the methods (decrement, increment, etc) and calls the doXXX() method of the class, like it is currently with the get() method.

New implementations of a Cache class would so have automatically all events.

niden commented 5 months ago

Thank you @noone-silent