Jorg Heymans wrote:

Hi all,

How can I add caching to my custom written serializer? On average my
serializer takes 3 seconds to complete (regardless whether I implement the
cacheable interface or not)


My serializer implements 2 interfaces : Serializer and Cacheable.


Implementation of the caching interface :

     public long generateKey() {
           //cachekey is long var
           //note that the svgserializer returns 1 here ????
           return cacheKey++;


You should read cacheable.xsp and after reading in also return "1" here.


(Otherwise you will return cahced response only on 2^64 request to the same resource)


Vadim



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to