File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @db/redis" ,
33 "version" : " 0.35.0" ,
4- "exports" : " ./mod.ts" ,
4+ "exports" : {
5+ "." : " ./mod.ts" ,
6+ "./experimental/cluster" : " ./experimental/cluster/mod.ts" ,
7+ "./experimental/web-streams-connection" : " ./experimental/web_streams_connection/mod.ts"
8+ },
59 "exclude" : [
610 " benchmark/node_modules" ,
711 " tmp"
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ The implementation is based on the
1111## Usage
1212
1313``` typescript
14- import { connect } from " https://deno.land/x/ redis/experimental/cluster/mod.ts " ;
14+ import { connect } from " @db/ redis/experimental/cluster" ;
1515
1616const cluster = await connect ({
1717 nodes: [
Original file line number Diff line number Diff line change 11/**
2+ * @module
3+ * @experimental **NOTE**: This is an unstable module.
4+ *
25 * Based on https://github.com/antirez/redis-rb-cluster which is licensed as follows:
36 *
47 * Copyright (C) 2013 Salvatore Sanfilippo <antirez@gmail.com>
Original file line number Diff line number Diff line change 1+ /**
2+ * @module
3+ * @experimental **NOTE**: This is an unstable module.
4+ */
15import { kUnstableCreateProtocol } from "../../internal/symbols.ts" ;
2- import type { RedisConnectOptions } from "../../redis.ts" ;
6+ import type { Redis , RedisConnectOptions } from "../../redis.ts" ;
37import { connect as _connect } from "../../redis.ts" ;
48import { Protocol } from "../../protocol/web_streams/mod.ts" ;
59
610function createProtocol ( conn : Deno . Conn ) {
711 return new Protocol ( conn ) ;
812}
913
10- export function connect ( options : RedisConnectOptions ) {
14+ export function connect ( options : RedisConnectOptions ) : Promise < Redis > {
1115 return _connect ( {
1216 ...options ,
1317 [ kUnstableCreateProtocol ] : createProtocol ,
You can’t perform that action at this time.
0 commit comments