apeman-service-memory
Apeman service to sotre data into memory
Last updated 2 years ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apeman-service-memory 
SYNC missed versions from official npm registry.

apeman-service-memory

Build Status npm Version JS Standard

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

apeman-service-memory@1.0.2

Apeman service to sotre data into memory

Functions

create(args) -> ApMemoryService

Create the service instance

Param Type Description
args *

License

This software is released under the MIT License.

Links

Current Tags

  • 2.0.0                                ...           latest (2 years ago)

3 Versions

  • 2.0.0                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 3
Last Month 11
Dependencies (4)
Dev Dependencies (14)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |