ETag

zanata/etag~ ETag

The ETag class to read/write.

Constructor

new ETag(file)

Source:
Parameters:
Name Type Description
file string

The place of the ETag file

Methods

add(cache)

Source:

Add a cache into the collection

Parameters:
Name Type Description
cache module:zanata/etagCache~ETagCache

the cache object

find(docId, versionId, lang, cb)

Source:

Seach the ETag cache from the collections.

Parameters:
Name Type Description
docId string

the document id

versionId string

the version id

lang string

the language name

cb module:zanata/etag~findCallback

the callback function to obtain the result

save()

Source:

Store the ETag caches into the file