Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

laf-vk-redis

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laf-vk-redis

laf-vk-redis,基于vk-redis,修改成Laf版本,文档:https://vkdoc.fsq.pub/vk-redis/api.html

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

使用说明

Laf依赖

『依赖管理』-『添加』-『laf-vk-redis』-『重启服务』

Laf云函数使用

1.引入laf-vk-redis

import cloud from '@/cloud-sdk'
const Redis = require('laf-vk-redis')
const redis = Redis.redis({
    host: '',
    port: 6379,
    password: '',
    db:0
  })

exports.main = async function (ctx: FunctionContext) {
    ...

2.云函数调用

exports.main = async function (ctx: FunctionContext) {

    await redis.set('a','我是a的值')
    let redisRes = await redis.get('a');
    console.log(redisRes)

...

3.调用文档

传送门

FAQs

Package last updated on 13 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc