Skip to main content

params.go

params.go - Overview

Defines a custom Param type and a set of constants representing various parameters used in Redis commands.

Detailed Documentation

type Param

type Param string
  • Purpose: Defines a custom string type named Param. This type is used to represent different parameters for Redis commands.

Constants

  • Purpose: Defines several constants of type Param, each representing a specific parameter used in Redis commands.
const (
CH Param = "CH"
INCR Param = "INCR"
GT Param = "GT"
LT Param = "LT"

EX Param = "EX"
PX Param = "PX"
EXAT Param = "EXAT"
PXAT Param = "PXAT"
XX Param = "XX"
NX Param = "NX"
KEEPTTL Param = "KEEPTTL"
GET Param = "GET"

PERSIST Param = "PERSIST"
)
  • CH: Represents the "CH" parameter. Purpose unclear from the code.
  • INCR: Represents the "INCR" parameter. Purpose unclear from the code.
  • GT: Represents the "GT" parameter. Purpose unclear from the code.
  • LT: Represents the "LT" parameter. Purpose unclear from the code.
  • EX: Represents the "EX" parameter, likely for setting expiry in seconds.
  • PX: Represents the "PX" parameter, likely for setting expiry in milliseconds.
  • EXAT: Represents the "EXAT" parameter, likely for setting expiry at a specific Unix timestamp in seconds.
  • PXAT: Represents the "PXAT" parameter, likely for setting expiry at a specific Unix timestamp in milliseconds.
  • XX: Represents the "XX" parameter, likely for setting only if the key exists.
  • NX: Represents the "NX" parameter, likely for setting only if the key does not exist.
  • KEEPTTL: Represents the "KEEPTTL" parameter, likely for preserving the existing TTL.
  • GET: Represents the "GET" parameter. Purpose unclear from the code.
  • PERSIST: Represents the "PERSIST" parameter, likely for removing the expiration from the key.

Getting Started Relevance