apeman-service-memory
v2.0.0
Published
Apeman service to sotre data into memory
Downloads
5
Readme
apeman-service-memory
Apeman service to sotre data into memory
Installation
$ npm install apeman-service-memory --save
Usage
#!/usr/bin/env node
'use strict'
const { ApMemory } = require('apeman-service-memory')
const { createStore } = require('redux')
const { reducer } = require('apeman-service-base')
const co = require('co')
co(function * () {
let store = createStore(reducer)
let service = new ApMemory(store)
yield service.setMemory('foo', 'This is foo')
let foo = service.getMemory('foo')
console.log(foo)
}).catch((err) => console.error(err))
API
[email protected]
Apeman service to sotre data into memory
- Functions
Functions
create(args) -> ApMemoryService
Create the service instance
| Param | Type | Description | | ----- | --- | -------- | | args | * | |
License
This software is released under the MIT License.