[teiid-issues] [JBoss JIRA] Commented: (TEIID-444) Expose the cache to connectors.

Ramesh Reddy (JIRA) jira-events at lists.jboss.org
Tue Apr 7 14:46:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/TEIID-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12461065#action_12461065 ] 

Ramesh Reddy commented on TEIID-444:
------------------------------------

one thing I changed in the above API is to change "key" to be "String" type

No, it is not the Node, it is the cached object. But irrespective of how it is stored, the way you ask for the is what it matters. For Example, if we store

X
 |--Y
      |--Z

to get the data out, you would say

get(X).getData("a");
get(X/Y).getData("a");
get(X/Y/Z).getData("a");

even in flat hierarchy you can store as

X
X/Y
X/Y/Z

you get the data you can call

get(X)
get(X/Y)
get(X/Y/Z)

so, all it matters is how you are relatively you are using your keys to for your purpose. In both cases you need to be aware of the node location. I wanted to keep the Cache API to be simple to use at Connector level, so that it is trivial to used by any connectors, otherwise we would have expose the internals of Cache API, which seems unnecessary.

There is no administration by the user, the connector developer uses the cache based on it's scopes, once the scope expires the cache will expire automatically. Centrally in the server, there will be configuration to control the cache items, based on events generated server, a manager object will expire the items as they happen.



> Expose the cache to connectors.
> -------------------------------
>
>                 Key: TEIID-444
>                 URL: https://jira.jboss.org/jira/browse/TEIID-444
>             Project: Teiid
>          Issue Type: Feature Request
>          Components: Connector API
>    Affects Versions: 6.0.0
>            Reporter: John Doyle
>            Assignee: Ramesh Reddy
>             Fix For: 6.1.0
>
>
> The XML-Relational connectors have historically had their own cache.  I'm modifying the connectors to use JBoss cache and it would benefit users if this connector and other connectors with need of a cache could use the teiid cache to ease cache configuration and monitoring.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the teiid-issues mailing list