jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tore Halset <hal...@ecc.no>
Subject Re: [jira] Commented: (JCS-58) disc file cache
Date Mon, 26 Oct 2009 21:36:58 GMT

Are you trying to put files into the cache directly, not via JCS?  
Please remember that the files in the cache will not be like the  
original files, but the file as a byte[] *and* some metadata like a  
timestamp and the key. All of that is then serialized and saved to disc.

If you have problems, please provide a minimal example to reproduce  
the problem. Like the lines from your cache.ccf and some lines of java  

  - Tore.

On 27. okt.. 2009, at 07.33, Chopin Hu (JIRA) wrote:

>    [ https://issues.apache.org/jira/browse/JCS-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12770178

> #action_12770178 ]
> Chopin Hu commented on JCS-58:
> ------------------------------
> Aaron,
> I am still not getting it right.   Seems that I put an ascii file  
> into the file disk as a separate file.   But when it is an binary  
> file.   It does not work.    Though I set the jvm to a bigger size  
> (1560MBs) to handle a 12 MBs binary file, it still fails.   Do you  
> have an sample code to show how to make it work?   If you need, I  
> can send you a copy of the binary file I used for testing.
> Thanks.
>> disc file cache
>> ---------------
>>                Key: JCS-58
>>                URL: https://issues.apache.org/jira/browse/JCS-58
>>            Project: JCS
>>         Issue Type: New Feature
>>   Affects Versions: jcs-1.3
>>           Reporter: Tore Halset
>>           Assignee: Aaron Smuts
>>            Fix For: jcs-1.4-dev
>>        Attachments: DiskFileCache.java,  
>> DiskFileCacheAttributes.java, DiskFileCacheFactory.java
>> It would be nice to have a file based cache in jcs where each item  
>> is stored as a single file and the filename is based on the key.  
>> This way, several jvms can share the same cache and the cache can  
>> be rsynced between nodes while running the application.
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org

View raw message