{ "_id": "map-cache", "_rev": "8-a86b0fe5901c63a0c560b178c5e5d1c6", "name": "map-cache", "description": "Basic cache object for storing key-value pairs.", "dist-tags": { "latest": "0.2.2" }, "versions": { "0.1.0": { "name": "map-cache", "description": "Create a simple cache object for storing key-value pairs.", "version": "0.1.0", "homepage": "https://github.com/jonschlinkert/map-cache", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git://github.com/jonschlinkert/map-cache.git" }, "bugs": { "url": "https://github.com/jonschlinkert/map-cache/issues" }, "license": { "type": "MIT", "url": "https://github.com/jonschlinkert/map-cache/blob/master/LICENSE" }, "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "dependencies": {}, "devDependencies": { "mocha": "*", "should": "*" }, "keywords": [], "_id": "map-cache@0.1.0", "_shasum": "c10ab293d4605c8b824fddd4869dea9a558c3c33", "_from": ".", "_npmVersion": "2.5.1", "_nodeVersion": "0.12.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "c10ab293d4605c8b824fddd4869dea9a558c3c33", "tarball": "https://registry.npmjs.org/map-cache/-/map-cache-0.1.0.tgz" }, "directories": {} }, "0.1.1": { "name": "map-cache", "description": "Basic cache object for storing key-value pairs.", "version": "0.1.1", "homepage": "https://github.com/jonschlinkert/map-cache", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git://github.com/jonschlinkert/map-cache.git" }, "bugs": { "url": "https://github.com/jonschlinkert/map-cache/issues" }, "license": { "type": "MIT", "url": "https://github.com/jonschlinkert/map-cache/blob/master/LICENSE" }, "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "devDependencies": { "mocha": "*", "should": "*" }, "keywords": [ "cache", "get", "has", "object", "set", "storage", "store" ], "_id": "map-cache@0.1.1", "_shasum": "568b4ae3233d107317648c60d7b51a80b55cc103", "_from": ".", "_npmVersion": "2.5.1", "_nodeVersion": "0.12.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "568b4ae3233d107317648c60d7b51a80b55cc103", "tarball": "https://registry.npmjs.org/map-cache/-/map-cache-0.1.1.tgz" }, "directories": {} }, "0.2.0": { "name": "map-cache", "description": "Basic cache object for storing key-value pairs.", "version": "0.2.0", "homepage": "https://github.com/jonschlinkert/map-cache", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git://github.com/jonschlinkert/map-cache.git" }, "bugs": { "url": "https://github.com/jonschlinkert/map-cache/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "devDependencies": { "mocha": "*", "should": "*" }, "keywords": [ "cache", "get", "has", "object", "set", "storage", "store" ], "gitHead": "fd92615eafc29f7898067ed7411dd082af325164", "_id": "map-cache@0.2.0", "_shasum": "3c900dc509c9eda4df063fd6f0f9002d91ab2455", "_from": ".", "_npmVersion": "2.10.1", "_nodeVersion": "0.12.4", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "3c900dc509c9eda4df063fd6f0f9002d91ab2455", "tarball": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.0.tgz" }, "directories": {} }, "0.2.1": { "name": "map-cache", "description": "Basic cache object for storing key-value pairs.", "version": "0.2.1", "homepage": "https://github.com/jonschlinkert/map-cache", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/map-cache.git" }, "bugs": { "url": "https://github.com/jonschlinkert/map-cache/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "devDependencies": { "gulp-format-md": "^0.1.7", "should": "^8.3.0" }, "keywords": [ "cache", "get", "has", "object", "set", "storage", "store" ], "verb": { "run": true, "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "related": { "list": [ "config-cache", "option-cache", "cache-base" ] }, "reflinks": [ "verb" ], "lint": { "reflinks": true } }, "gitHead": "5f97be81cab9b774bda6106bf6b2f152f96786b2", "_id": "map-cache@0.2.1", "_shasum": "0ac4a21713fe9eb2aa8ddce7db1dff6648b7f713", "_from": ".", "_npmVersion": "3.6.0", "_nodeVersion": "5.5.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "0ac4a21713fe9eb2aa8ddce7db1dff6648b7f713", "tarball": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.1.tgz" }, "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/map-cache-0.2.1.tgz_1460378062919_0.36677914508618414" }, "directories": {} }, "0.2.2": { "name": "map-cache", "description": "Basic cache object for storing key-value pairs.", "version": "0.2.2", "homepage": "https://github.com/jonschlinkert/map-cache", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/map-cache.git" }, "bugs": { "url": "https://github.com/jonschlinkert/map-cache/issues" }, "license": "MIT", "files": [ "index.js" ], "main": "index.js", "engines": { "node": ">=0.10.0" }, "scripts": { "test": "mocha" }, "devDependencies": { "gulp-format-md": "^0.1.9", "should": "^8.3.1" }, "keywords": [ "cache", "get", "has", "object", "set", "storage", "store" ], "verb": { "run": true, "toc": false, "layout": "default", "tasks": [ "readme" ], "plugins": [ "gulp-format-md" ], "related": { "list": [ "config-cache", "option-cache", "cache-base" ] }, "reflinks": [ "verb" ], "lint": { "reflinks": true } }, "gitHead": "f36c7567cb85b50824db25a2a588c5f7b858823b", "_id": "map-cache@0.2.2", "_shasum": "c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf", "_from": ".", "_npmVersion": "3.6.0", "_nodeVersion": "5.5.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "dist": { "shasum": "c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf", "tarball": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz" }, "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/map-cache-0.2.2.tgz_1462877475232_0.17523240111768246" }, "directories": {} } }, "readme": "# map-cache [![NPM version](https://img.shields.io/npm/v/map-cache.svg?style=flat)](https://www.npmjs.com/package/map-cache) [![NPM downloads](https://img.shields.io/npm/dm/map-cache.svg?style=flat)](https://npmjs.org/package/map-cache) [![Build Status](https://img.shields.io/travis/jonschlinkert/map-cache.svg?style=flat)](https://travis-ci.org/jonschlinkert/map-cache)\n\nBasic cache object for storing key-value pairs.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install map-cache --save\n```\n\nBased on MapCache in Lo-dash v3.0. [MIT License](https://github.com/lodash/lodash/blob/master/LICENSE.txt)\n\n## Usage\n\n```js\nvar MapCache = require('map-cache');\nvar mapCache = new MapCache();\n```\n\n## API\n\n### [MapCache](index.js#L28)\n\nCreates a cache object to store key/value pairs.\n\n**Example**\n\n```js\nvar cache = new MapCache();\n```\n\n### [.set](index.js#L45)\n\nAdds `value` to `key` on the cache.\n\n**Params**\n\n* `key` **{String}**: The key of the value to cache.\n* `value` **{any}**: The value to cache.\n* `returns` **{Object}**: Returns the `Cache` object for chaining.\n\n**Example**\n\n```js\ncache.set('foo', 'bar');\n```\n\n### [.get](index.js#L65)\n\nGets the cached value for `key`.\n\n**Params**\n\n* `key` **{String}**: The key of the value to get.\n* `returns` **{any}**: Returns the cached value.\n\n**Example**\n\n```js\ncache.get('foo');\n//=> 'bar'\n```\n\n### [.has](index.js#L82)\n\nChecks if a cached value for `key` exists.\n\n**Params**\n\n* `key` **{String}**: The key of the entry to check.\n* `returns` **{Boolean}**: Returns `true` if an entry for `key` exists, else `false`.\n\n**Example**\n\n```js\ncache.has('foo');\n//=> true\n```\n\n### [.del](index.js#L98)\n\nRemoves `key` and its value from the cache.\n\n**Params**\n\n* `key` **{String}**: The key of the value to remove.\n* `returns` **{Boolean}**: Returns `true` if the entry was removed successfully, else `false`.\n\n**Example**\n\n```js\ncache.del('foo');\n```\n\n## Related projects\n\nYou might also be interested in these projects:\n\n* [cache-base](https://www.npmjs.com/package/cache-base): Basic object cache with `get`, `set`, `del`, and `has` methods for node.js/javascript projects. | [homepage](https://github.com/jonschlinkert/cache-base)\n* [config-cache](https://www.npmjs.com/package/config-cache): General purpose JavaScript object storage methods. | [homepage](https://github.com/jonschlinkert/config-cache)\n* [option-cache](https://www.npmjs.com/package/option-cache): Simple API for managing options in JavaScript applications. | [homepage](https://github.com/jonschlinkert/option-cache)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/map-cache/issues/new).\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install verb && npm run docs\n```\n\nOr, if [verb](https://github.com/verbose/verb) is installed globally:\n\n```sh\n$ verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/map-cache/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 10, 2016._", "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "time": { "modified": "2019-02-19T08:16:44.327Z", "created": "2015-02-25T10:54:58.270Z", "0.1.0": "2015-02-25T10:54:58.270Z", "0.1.1": "2015-03-18T09:51:35.113Z", "0.2.0": "2015-06-23T17:07:33.511Z", "0.2.1": "2016-04-11T12:34:24.070Z", "0.2.2": "2016-05-10T10:51:16.518Z" }, "homepage": "https://github.com/jonschlinkert/map-cache", "keywords": [ "cache", "get", "has", "object", "set", "storage", "store" ], "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/map-cache.git" }, "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "bugs": { "url": "https://github.com/jonschlinkert/map-cache/issues" }, "license": "MIT", "readmeFilename": "README.md", "users": { "daizch": true } }