@domain.js/hash

0.2.0 • Public • Published

@domain.js/hash

Build status codecov

Installation

npm i @domain.js/hash --save

cnf

专属配置名称 hash

名称 类型 必填 默认值 描述 样例
key string hash 在redis里存储的 key 名称 hashs

deps

模块名 别名 用到的方法 描述
redis hget, hset, hdel 本质上是包裹了一下 redis.hash 相关的操作

Usage

功能 描述 样例
get 读取一个 key await hash.get('name')
set 设置一个 key await hash.set('name', 'Redstone')
del 删除一个 key await hash.del('name')
incr 原子操作某个 key 的值增加 await hash.incr('name', 1)

Readme

Keywords

Package Sidebar

Install

npm i @domain.js/hash

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

2.15 kB

Total Files

3

Last publish

Collaborators

  • stonephp