2.0.0 • Published 4 months ago

@seneca/entity-util v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

seneca-entity-util

Npm Travis Coveralls DeepScan grade Maintainability devDependencies Status

Utilities for Seneca entities.

  • rtag: random revision tags generated per save; provides support for complex object caching.
  • archive: archival of deleted entities.
  • when: injection of created and modified time stamps
  • duration: injection of entity action duration times in results as meta data

Install

$ npm install seneca-entity-util seneca-promisify

Options

None.

Action Patterns

Action Descriptions

« "role":"cache","resolve":"rtag" »

Use rtag to load cached version of expensive result.

Parameters

  • space : string " "
  • key : string " "
  • rtag : string " "
  • resolver : function " "

« "role":"cache","stats":"rtag" »

Get rtag cache usage statistics.


« "sys":"entity","cmd":"list" »

No description provided.


« "sys":"entity","cmd":"load" »

No description provided.


« "sys":"entity","cmd":"remove" »

No description provided.


« "sys":"entity","cmd":"save" »

Override sys:entity,cmd:save to apply utilities.


« "sys":"entity","derive":"add" »

No description provided.


« "sys":"entity","derive":"list" »

No description provided.


2.0.0

4 months ago

1.6.0

7 months ago

1.5.0

7 months ago

1.4.0

10 months ago

1.3.0

2 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.1

5 years ago