@ezs/storage
Storage statements for EZS
Last updated 9 days ago by touv .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ezs/storage 
SYNC missed versions from official npm registry.

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

load

With a String, containing a URI throw all the documents that match

Parameters

  • data
  • feed
  • domain String domain ID (that should contains the uri input) (optional, default ezs)

Returns String

flow

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, default ezs)
  • length Number? limit the number of output objects

Returns Object

save

Take Object, to save it into a store and throw an URL

Parameters

  • data
  • feed
  • path String path containing the object Identifier (optional, default uri)
  • domain String domain ID (same for all objects) (optional, default ezs)
  • reset Boolean if the store already exists, you will erase all previous content (optional, default false)

Returns Object

identify

Take Object, and compute & add a identifier

Parameters

  • data
  • feed
  • scheme String scheme prefix (optional, default uid)
  • path String path containing the object Identifier (optional, default uri)

Returns String

boost

Takes an Object delegate processing to an external pipeline and cache the result

Parameters

  • data
  • feed
  • file String? the external pipeline is described in a file
  • script String? the external pipeline is described in a string of characters
  • commands String? the external pipeline is described in a object
  • command String? the external pipeline is described in a URL-like command
  • key String? the cache key form the stream, in not provided, it's computed with the first chunk
  • cleanupDelay Number Frequency (seconds) to cleanup the cache (EZS_DELAY) (optional, default 3600)

Returns Object

Current Tags

  • 1.3.1                                ...           latest (9 days ago)

17 Versions

  • 1.3.1                                ...           9 days ago
  • 1.2.5                                ...           12 days ago
  • 1.2.4                                ...           22 days ago
  • 1.2.3                                ...           2 months ago
  • 1.2.2                                ...           2 months ago
  • 1.2.1                                ...           3 months ago
  • 1.2.0                                ...           4 months ago
  • 1.1.10                                ...           5 months ago
  • 1.1.9                                ...           5 months ago
  • 0.1.7                                ...           6 months ago
  • 0.1.6                                ...           6 months ago
  • 0.1.5                                ...           6 months ago
  • 0.1.4                                ...           6 months ago
  • 0.1.3                                ...           7 months ago
  • 0.1.2                                ...           7 months ago
  • 0.1.1                                ...           8 months ago
  • 0.1.0                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 56
Last Day 0
Last Week 22
Last Month 1
Dependencies (8)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |