[not part of build]

Added readonly lastModified attribute to nsICacheEntryDescriptor.  Added PRBool attribute doomEntriesIfExpired to nsICacheSession.
This commit is contained in:
gordon%netscape.com 2001-03-08 05:31:52 +00:00
parent aef4cfd76d
commit dd593b9f58
2 changed files with 15 additions and 4 deletions

View File

@ -49,6 +49,11 @@ interface nsICacheEntryDescriptor : nsISupports
*/
readonly attribute PRTime lastFetched;
/**
* Get the last time the cache entry was modified.
*/
readonly attribute PRTime lastModified;
/**
* Get the last time the cache entry was marked valid.
*/

View File

@ -33,10 +33,16 @@ interface nsICacheListener;
interface nsICacheSession : nsISupports
{
/**
* A cache session can only give out one cache entry descriptor with
* WRITE access at a time. Until the client calls MarkValid on its
* descriptor, other attempts to open the same cache entry will
* block.
* Expired entries will be doomed or evicted if this attribute is set to true.
* If false, expired entries will be returned (useful for offline-mode). This
* attribute defaults to true.
*/
attribute PRBool doomEntriesIfExpired;
/**
* A cache session can only give out one descriptor with WRITE access
* to a given cache entry at a time. Until the client calls MarkValid on
* its descriptor, other attempts to open the same cache entry will block.
*/
/**