Constructor
new CachierDB(optsopt, readFormatteropt, writeFormatteropt, logopt)
Constructor
- Source:
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
TemplateDBOpts
|
<optional> |
The |
||||||||||||||||||||
readFormatter |
function
|
<optional> |
The |
||||||||||||||||||||
writeFormatter |
function
|
<optional> |
The |
||||||||||||||||||||
log |
Object
|
<optional> |
The log for handling logging output
|
Members
operations
- Source:
Methods
(async) clear(allopt)
Clears templates that may reside in-memory, optionally clears the IndexedDB keys in the cache store(s) and closes any lingering DB connections.
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
all |
Boolean
|
<optional> |
true |
When |
(async) compile()
- Source:
(async) read()
- Source:
(async) register()
- Source:
(async) write()
- Source: