2.0.0 • Published 7 years ago

statecontainer v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Simple object state container.

Example

const stateContainer = require('statecontainer');
const connections = stateContainer.store('connections');

const connectionUrl = 'amqp://localhost:9000';
const connection = connections.cachedResult(connectionUrl, getConnector(connectionUrl));

function getConnector(connectionUrl) {
    return async() => {
        return await amqp.connect(connectionUrl);
    }
} 

API

2.0.0

7 years ago

1.3.0

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago