
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
KVS or Key Value Store is an abstract KeyValueStore system. The kvs group of node modules, are intended to present a unified interface to key value stores of every persuasion. This allows for substituting them without changing anything but the initializing parameters.
KVS-filter modules are modules that are used to modify the requests to the KVS system. They can transform the key or the value or both in some way. However they need to take either be transparent and keep to the KVS-system definition (i.e.: values are buffers, etc...) or be used close to the consumer of the API.
npm install kvs-base
function get(name, callback) { … }
function set(name, callback) { … }
function remove(name, callback) { … }
function list(name, callback) { … }
Buffer
objectslist
method lists all keys that start with name
(the first argument)list
method returns an object in the form { count:<integer>, values:[<array of strings>] }
var kvs=require('kvs-base');
var store = kvs('kvs-<module>', { <options> });
store.set('name', 'this is a string', function(err) {…});
store.get('name', function(err, value) {
// attention! value will be a string (or null if not found)
});
store.remove('name', function(err) { … });
store.list('name', function(err, value) { … });
var kvs=require('kvs-base');
var store = kvs('kvs-<module>', { <options> });
kvs.util('kvs-<filter>', store, { … });
var kvs=require('kvs-base');
var s1 = kvs('kvs-<module>', { <options> });
var s2 = kvs('kvs-<module>', { <options> });
var s3 = kvs('kvs-<module>', { <options> });
var store = kvs.util('kvs-stagger', [ s1, s2, s3 ], { writeDepth:1, removeDepth:3, percolate:false });
Copyright (c) 2013 Philipp Dunkel
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
KVS is a uniform KeyValueStore with different backends
The npm package kvs-base receives a total of 0 weekly downloads. As such, kvs-base popularity was classified as not popular.
We found that kvs-base demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.