#159 CacheManager

open
nobody
None
5
2012-12-13
2003-01-23
Oliver jehle
No

Hi Henrik

as mentioned when submitting my Disk Cache patch, i've
the idea to replace the whole caching stuff by a
central cache manager responsible for all kinds of objects:

there should be some few requests that should be handled..

putObject(CacheObject)
getObjectList(ObjectType)

getObject(ObjectName,ObjectType)
getObjectList(ObjectType)

isCacheValidFor(ObjectName)
isCacheValidFor(ObjectType)

invalidate(ObjectType)

every time a object is requested, the cacheManager
should be checked if the object is available, if not,
go to the database and after getting the data, store
them in the cache... (to ... disk)..

so we have one place handling all caching and storing...

i've saw some todo's about using the cache in the
browser.. i think, you have to implement a lot of code
and comlexity with the current code...

whats your meaning about the problem ???

PS: i will ask my boss about the amazon wishlist....
he's out of the office in the moment.....

Discussion

  • Henrik Johnson
    Henrik Johnson
    2003-01-23

    Logged In: YES
    user_id=2931

    Haven't really though much about a cache manager myself. But
    it sounds like a good idea. Then to the problem of
    implementing it for the object browser. It could probably be
    implemented so that all queries could be cached. The
    addressing of queries in the cache could be a bit
    complicated since it differs on both connection, SQL and the
    parameters.

    Then you should be able to specify if the caching should be
    persistent (Like the object cache is now) or not. If not
    persistant it should only cache stuff while the connection
    is open. Will think a bit about it. Right now I have quite
    little time left for TOra development, but hopefully this
    will change around mid february when I have a deadline for
    another project.

    /Mauritz
    Underscore AB