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

@keyv/redis

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keyv/redis - npm Package Compare versions

Comparing version 3.0.0-rc.1 to 3.0.0

dist/cjs/index.d.ts

26

package.json
{
"name": "@keyv/redis",
"version": "3.0.0-rc.1",
"version": "3.0.0",
"description": "Redis storage adapter for Keyv",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
}
},
"scripts": {
"build": "tsc --project tsconfig.dist.json",
"build": "rm -rf dist && tsc --project tsconfig.cjs.json && tsc --project tsconfig.esm.json",
"prepare": "yarn build",

@@ -56,6 +63,6 @@ "test": "xo --fix && vitest run --coverage",

"@keyv/test-suite": "*",
"keyv": "^5.0.0-rc.1",
"keyv": "^5.0.0",
"timekeeper": "^2.3.1",
"tsd": "^0.31.0",
"xo": "^0.58.0"
"tsd": "^0.31.1",
"xo": "^0.59.3"
},

@@ -66,7 +73,8 @@ "tsd": {

"engines": {
"node": ">= 14"
"node": ">= 18"
},
"files": [
"dist"
"dist",
"LICENSE"
]
}

@@ -1,2 +0,2 @@

# @keyv/redis [<img width="100" align="right" src="https://jaredwray.com/images/keyv.svg" alt="keyv">](https://github.com/jaredwra/keyv)
# @keyv/redis [<img width="100" align="right" src="https://jaredwray.com/images/keyv-symbol.svg" alt="keyv">](https://github.com/jaredwra/keyv)

@@ -23,5 +23,6 @@ > Redis storage adapter for Keyv

```js
const Keyv = require('keyv');
import Keyv from 'keyv';
import KeyvRedis from '@keyv/redis';
const keyv = new Keyv('redis://user:pass@localhost:6379');
const keyv = new Keyv(new KeyvRedis('redis://user:pass@localhost:6379'));
keyv.on('error', handleConnectionError);

@@ -35,3 +36,3 @@ ```

```js
const keyv = new Keyv('redis://user:pass@localhost:6379', { disable_resubscribing: true });
const keyv = new Keyv(new KeyvRedis('redis://user:pass@localhost:6379', { disable_resubscribing: true }));
```

@@ -42,4 +43,4 @@

```js
const KeyvRedis = require('@keyv/redis');
const Keyv = require('keyv');
import Keyv from 'keyv';
import KeyvRedis from '@keyv/redis';

@@ -53,5 +54,5 @@ const keyvRedis = new KeyvRedis('redis://user:pass@localhost:6379');

```js
const KeyvRedis = require('@keyv/redis');
const Redis = require('ioredis');
const Keyv = require('keyv');
import Keyv from 'keyv';
import Redis from 'ioredis';
import KeyvRedis from '@keyv/redis';

@@ -66,5 +67,5 @@ const redis = new Redis('redis://user:pass@localhost:6379');

```js
const KeyvRedis = require('@keyv/redis');
const Redis = require('ioredis');
const Keyv = require('keyv');
import Keyv from 'keyv';
import Redis from 'ioredis';
import KeyvRedis from '@keyv/redis';

@@ -98,5 +99,5 @@ const redis = new Redis.Cluster('redis://user:pass@localhost:6379');

```js
const Keyv = require('keyv');
import Keyv from 'keyv';
const keyv = new Keyv('redis://user:pass@localhost:6379', { useRedisSets: false });
const keyv = new Keyv(new KeyvRedis('redis://user:pass@localhost:6379', { useRedisSets: false }));
```

@@ -106,2 +107,2 @@

MIT © Jared Wray
[MIT © Jared Wray](LISCENCE)
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