Redis.type

Return the type of the value stored at key in form of a string. The type can be one of "none", "string", "list", "set". "none" is returned if the key does not exist. Time complexity: O(1) @param key @return Status code reply, specifically: "none" if the key does not exist "string" if the key contains a string value "list" if the key contains a List value "set" if the key contains a Set value "zset" if the key contains a Sorted Set value "hash" if the key contains a Hash value

  1. string type(string key)
    class Redis
    string
    type
    (
    string key
    )
  2. alias type = BinaryRedis.type

Meta