Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.39 KB

File metadata and controls

47 lines (31 loc) · 1.39 KB
code type title description
false
page
object
MemoryStorage:object

object

Inspects the low-level properties of a key.

[Redis documentation]


object(key, subcommand, [options], callback)

Arguments Type Description
key string Key identifier
subcommand string Name of the low-level property to inspect.
Allowed values: refcount, encoding, idletime
options JSON Object Optional parameters
callback function Callback

Options

Option Type Description Default
queuable boolean Make this request queuable or not true

Callback Response

Returns the value of the inspected property.

Usage

<<< ./snippets/object-1.js

Callback response:

"raw"