Hi fellow developers,

I have created an object called " page " that will store all page
information, such as content, title, meta data etc....

I have an application struct ( application.stPages) containing a
nested struct to store each pageid's data. However, the struct is not
a struct of page objects, but rather a struct of inner structs. eg
application.pages.130.content (this will obviously get the content for
the page with id 130).

Now, for the CMS side of things I don't use the cache , but rather i
dealing with the DB directly. So if given a page id, i can simply use
my DAO to read in the page information. ( pageDAO.read(page) and then
will return to me a page object.

However, when not in the CMS i require cache readings rather than db.
I want to use the page objects functions, so that I  can simply
retrieve the content by doing the following: page.getContent(), but
since the application.stPages does not store objects i would have to
first ensure the key exists in the struct , if so outputting it, where
ever it has been called. I'd much rather use the page objects
functions, over this method.

On option would be to have a component that will read the cache struct
and return a page object, acting like a DAO (used in the CMS) but
instead reading from the struct. Would this be feasible and a good way
of doing this?

Any hints / tips /advise would be great.

Your help is greatly appreciated,

RonY


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to