1.2.0 • Published 7 years ago

lab-statecontainer v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

What is it?

Collection of state related handler functions with namespacing.

Example

const stateContainer = require('lab-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);
    }
} 
1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago