Skip to content

Commit

Permalink
Merge branch 'master' of github.com:hayes/unpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hayes committed May 15, 2014
2 parents bf2fa61 + 6047397 commit 25ce7bf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,11 @@ The `config` object can have all the keys defined in
- `config.backend`: Specifies the persistence layer for μnpm. See the default
[file-system backend][fs-back] or the alternative [levelDB
backend][leveldb-back]
- `config.sessions`: An object with methods:
- `set(data, done)`, where `done` is a node style callback. If successful,
`done` will be called with a token which can be used to retrieve `data` via
the `get` method.
- `get(token, done)`, where `done` is a node style callback. If successful,
`done` will be called with the data correspondinging to the token.

By default, `config.sessions` defaults to a simple, in-memory
[store](./lib/models/SessionStore.js).

#### Instance

The μnpm service instance has the following attributes:

- `sessions`: The `config.sessions` object.
- `server`: An [HTTP
server](http://nodejs.org/api/http.html#http_class_http_server) instance
which will service the npm api, and the additional resources defined for
Expand Down

0 comments on commit 25ce7bf

Please sign in to comment.