Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more
Module

x/redis/mod.ts>RedisSubscription

πŸ¦• Redis client for Deno πŸ•
Very Popular
Latest
interface RedisSubscription
import { type RedisSubscription } from "https://deno.land/x/redis@v0.34.0/mod.ts";

Type Parameters

optional
TMessage extends ValidMessageType = DefaultMessageType

Properties

readonly
isClosed: boolean

Methods

receive(): AsyncIterableIterator<RedisPubSubMessage<TMessage>>
receiveBuffers(): AsyncIterableIterator<RedisPubSubMessage<Binary>>
psubscribe(...patterns: string[]): Promise<void>
subscribe(...channels: string[]): Promise<void>
punsubscribe(...patterns: string[]): Promise<void>
unsubscribe(...channels: string[]): Promise<void>
close(): void