mirror of
https://github.com/azure/login.git
synced 2026-03-13 18:17:09 -04:00
* Bump lodash from 4.17.15 to 4.17.19 (#52) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Amruta Kawade <65217380+AmrutaKawade@users.noreply.github.com> * Bump @actions/core from 1.1.3 to 1.2.6 (#60) Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.1.3 to 1.2.6. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Amruta Kawade <65217380+AmrutaKawade@users.noreply.github.com> * updating node_nodules * updated package-lock Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
map-cache

Basic cache object for storing key-value pairs.
Install
Install with npm:
$ npm install map-cache --save
Based on MapCache in Lo-dash v3.0. MIT License
Usage
var MapCache = require('map-cache');
var mapCache = new MapCache();
API
MapCache
Creates a cache object to store key/value pairs.
Example
var cache = new MapCache();
.set
Adds value to key on the cache.
Params
key{String}: The key of the value to cache.value{any}: The value to cache.returns{Object}: Returns theCacheobject for chaining.
Example
cache.set('foo', 'bar');
.get
Gets the cached value for key.
Params
key{String}: The key of the value to get.returns{any}: Returns the cached value.
Example
cache.get('foo');
//=> 'bar'
.has
Checks if a cached value for key exists.
Params
key{String}: The key of the entry to check.returns{Boolean}: Returnstrueif an entry forkeyexists, elsefalse.
Example
cache.has('foo');
//=> true
.del
Removes key and its value from the cache.
Params
key{String}: The key of the value to remove.returns{Boolean}: Returnstrueif the entry was removed successfully, elsefalse.
Example
cache.del('foo');
Related projects
You might also be interested in these projects:
- cache-base: Basic object cache with
get,set,del, andhasmethods for node.js/javascript projects. | homepage - config-cache: General purpose JavaScript object storage methods. | homepage
- option-cache: Simple API for managing options in JavaScript applications. | homepage
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Building docs
Generate readme and API documentation with verb:
$ npm install verb && npm run docs
Or, if verb is installed globally:
$ verb
Running tests
Install dev dependencies:
$ npm install -d && npm test
Author
Jon Schlinkert
License
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v0.9.0, on May 10, 2016.