@ezs/storage
v3.2.5
Published
Storage statements for EZS
Downloads
415
Readme
storage
Présentation
Ce plugin est propose une série d'instructions pour stocker et récuper des flux d'objets JSON
installation
npm install @ezs/storage
usage
Table of Contents
cast
Take an Object
and replace it with all the objects of the same domain contained in the store.
Warning: order is not guaranteed
Parameters
data
feed
domain
String domain ID (same for all objects) (optional, defaultezs
)clean
String clean all stored object after cast them (optional, defaultfalse
)
Returns Object
load
With a String
, containing a URI throw all the documents that match
Parameters
data
feed
path
String path containing the object Identifier (optional, defaulturi
)domain
String domain ID (that should contains the uri input) (optional, defaultezs
)target
String? choose the key to set
Returns String
save
Take Object
, to save it into a store and throw an URL
Parameters
data
feed
path
String path containing the object Identifier (optional, defaulturi
)domain
String domain ID (same for all objects) (optional, defaultezs
)reset
Boolean if the store already exists, you will erase all previous content (optional, defaultfalse
)score
Boolean if the object has already been saved, the current object will replace it if its score is higher (optional, defaultfalse
)
Returns Object