session-cache ![NPM version](https://badge.fury.io/js/session-cache.svg)
Session storage for tasks.
Install
Install with npm
npm i session-cache --save
Run tests
npm test
Usage
Example of using sessions to pass data between gulp tasks.
var session = require('session-cache')('your app');
API
Create a session with the given name
name
{String}returns
: {Object}
var session = require('session')('your app');
Bind an EventEmitter or Stream to the current Session context.
emitter
{EventEmitter|Stream}: EventEmitter or Stream to bind.
var stream = through.obj();
sessin.bindEmitter(stream);
key
{String}value
{*}returns
{*}: Returns the set value.
Assign value
on the current session to key
.
key
{String}returns
{*}: Value of the key or undefined
Get the stored value of key
from the current session.
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Brian Woodward
License
Copyright (c) 2014 Brian Woodward
Released under the MIT license
This file was generated by verb on December 16, 2014.