![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
general-node-utils
Advanced tools
比如会包括一些redis的链接和redis命令的封装。
npm i general-node-utils -S
var {redisConn} = require('general-node-utils');
var redis = redisConn();
redis.keys("*").then(data=>{
console.log(data);
});
import {redisConn} from 'general-node-utils';
require('general-js-utils');
const redis = redisConn();
redis.keys("*").then(data=>{
- console.log(data);
});
用于redis连接,options参见https://github.com/luin/ioredis/blob/master/API.md
defaultOptions = {
port:6379,
host:'127.0.0.1',
family:4,
db=0
}
批量获取hash类型内的全部数据。
输入一个redis连接,以及想获取的hash的keys的数组,options可选,有一个参数showEmptyObject
,默认是false
,表示如果没有这个key的话不作为数组的一个元素输出,如果为true
则会在对应项里输出一个空对象
批量检测keys是否存在
输入同上,输出类似为[true,false,true]
批量获取各个有序集合内的成员数量,options可选,有2个参数,min和max,分别表示有序集合内score的范围。 输出同上
批量获取各个类型为string,并且存放的是json字符串的集合,json字符串将会自动解析成对象。
FAQs
nodejs通用工具封装
The npm package general-node-utils receives a total of 0 weekly downloads. As such, general-node-utils popularity was classified as not popular.
We found that general-node-utils 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.