...
- on fourq.getData() calls
- check typename.objectpool for UUID
- if present
- return struct
- if not,
- make dbgateway call
- check if room in objectpool
- purge/update aobjects FIFO list as required
- update objectpool with object struct
- return struct
- update cache stats
- if present
- check typename.objectpool for UUID
- return object struct to content type call exactly as per original
Essentially replace update dbgateway calls for getData() CRUD methods in fourq.cfc with calls to object broker. Object broker dbgateway would then be responsible for making calls on the dbgatewayObject broker. Update delete and setdata calls to purge objectpool as required.
...
Currently fourq goes through dbgateway for create, set and delete method calls but not getdata(). Perhaps this object Object broker should be an inherent part of the dbgateway componentry. In any event should be easy to get a getdata cache going that ignores underlying data changes through setdata(). Need to update getdata() to go through the dbgateway.
Quick and nasty prototype seems to work well
...