Skip to content

encodeRedisSegment

function encodeRedisSegment(part): string;

Encode one segment of a Redis key. Escapes ’:’ and anything not allow-listed.

Parameter Type

part

string

string