History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CACHE-172
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Andres March
Reporter: Lars Torunski
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OSCache

Easier API usage for developers

Created: 05/May/05 04:18 PM   Updated: 10/May/05 12:45 AM
Component/s: Base Classes
Affects Version/s: 2.1.1
Fix Version/s: 3.0


 Description  « Hide
A lot of users have problems to use the Cache API correctly. Using the GeneralCacheAdministrator class developers have to handle the NeedsRefreshException in the right way, see http://wiki.opensymphony.com/display/CACHE/API+Usage.

Even if the API shouldn't have the main focus for the developers, the usage should be improved in a way that the user hasn't to handle the NeedsRefreshException.

 All   Comments   Change History      Sort Order:
Lars Torunski - [10/May/05 12:45 AM ]
One idea is to provide two new abstract classes which implement failover and no failover functionality. Each class implement a getFromCache(myKey) method and handle the NeedsRefreshException. The user has only to implement the method putInCache(myKey, myValue).