Public Member Functions

nsIApplicationCacheService Interface Reference

The application cache service manages the set of application cache groups. More...

import "nsIApplicationCacheService.idl";

List of all members.

Public Member Functions

nsIApplicationCache createApplicationCache (in ACString group)
 Create a new, empty application cache for the given cache group.
nsIApplicationCache getApplicationCache (in ACString clientID)
 Get an application cache object for the given client ID.
nsIApplicationCache getActiveCache (in ACString group)
 Get the currently active cache object for a cache group.
void deactivateGroup (in ACString group)
 Deactivate the currently-active cache object for a cache group.
nsIApplicationCache chooseApplicationCache (in ACString key)
 Try to find the best application cache to serve a resource.
void cacheOpportunistically (in nsIApplicationCache cache, in ACString key)
 Flags the key as being opportunistically cached.
void getGroups ([optional] out unsigned long count,[array, size_is(count), retval] out string groupIDs)
 Get the list of application cache groups.

Detailed Description

The application cache service manages the set of application cache groups.


Member Function Documentation

void nsIApplicationCacheService::cacheOpportunistically ( in nsIApplicationCache  cache,
in ACString  key 
)

Flags the key as being opportunistically cached.

This method should also propagate the entry to other application caches with the same opportunistic namespace, but this is not currently implemented.

Parameters:
cache The cache in which the entry is cached now.
key The cache entry key.
nsIApplicationCache nsIApplicationCacheService::chooseApplicationCache ( in ACString  key  ) 

Try to find the best application cache to serve a resource.

nsIApplicationCache nsIApplicationCacheService::createApplicationCache ( in ACString  group  ) 

Create a new, empty application cache for the given cache group.

void nsIApplicationCacheService::deactivateGroup ( in ACString  group  ) 

Deactivate the currently-active cache object for a cache group.

nsIApplicationCache nsIApplicationCacheService::getActiveCache ( in ACString  group  ) 

Get the currently active cache object for a cache group.

nsIApplicationCache nsIApplicationCacheService::getApplicationCache ( in ACString  clientID  ) 

Get an application cache object for the given client ID.

void nsIApplicationCacheService::getGroups ( [optional] out unsigned long  count,
[array, size_is(count), retval] out string  groupIDs 
)

Get the list of application cache groups.


The documentation for this interface was generated from the following file: