@seneca/entity-util
v3.2.0
Published
Collection of optional utilities for Seneca entities.
Downloads
103
Readme
seneca-entity-util
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
rtag
: objectwhen
: objectduration
: objectarchive
: objectderive
: objecterrors
: objectinit$
: boolean
Action Patterns
- role:cache,resolve:rtag
- role:cache,stats:rtag
- sys:entity,cmd:list
- sys:entity,cmd:load
- sys:entity,cmd:remove
- sys:entity,cmd:save
- sys:entity,derive:add
- sys:entity,derive:list
Action Descriptions
« role:cache,resolve:rtag
»
Use rtag to load cached version of expensive result.
« 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.