You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
I would prefer to provide a well-configured Model cache instead of leaving that completely to the "userspace". Providing a cache on HTTP Level was an original Idea, but is not efficient from a performance point of view and is prone to confusion with real HTTP caches on the network level.
Use Case: Categories, User Cart, some custom objects etc.
Wishlist:
deserialization from cache faster than the "regular" stuff (probably hard or even not possible)
tightly integrated, but not intransparent API
separate cache provider than the one for Oauth configurable (domain objects can get too large for apcu, so a slower but bigger external cache makes sense).
Design decisions to be made
domain specific defaults for expiration time
how to handle references (serialize as children or flatten the stuff and put children and references that have an ID into the cache separately and get them back on deserialization? )
format? json_encode / PHP serialize / custom stuff like msgpack? First impression: either we just cache the raw "data" array (as json or whatever is fast and compact) plus a custom class prefix or we use PHP builtin serialization.
API / how to integrate tight
finally: does this make sense at all ? Or is this userspace.
PRO: it's easy to mess up stuff in this area if you don't know the structure of the API very exactly. So better do that in the SDK.
CON: too much application logic?
The text was updated successfully, but these errors were encountered:
I would prefer to provide a well-configured Model cache instead of leaving that completely to the "userspace". Providing a cache on HTTP Level was an original Idea, but is not efficient from a performance point of view and is prone to confusion with real HTTP caches on the network level.
Use Case: Categories, User Cart, some custom objects etc.
Wishlist:
Design decisions to be made
finally: does this make sense at all ? Or is this userspace.
PRO: it's easy to mess up stuff in this area if you don't know the structure of the API very exactly. So better do that in the SDK.
CON: too much application logic?
The text was updated successfully, but these errors were encountered: