Skip to content

[FEATURE] HVLEN Hash value string length #2065

Closed

Description

@danj3

HVLEN acts identically as STRLEN but retrieves the length of a value for a given key in a Hash.
Eg:
127.0.0.1:6379> HSET foo bar "hello"
(integer) 1
127.0.0.1:6379> HVLEN foo bar
(integer) 5

Activity

  1. landmime commented on Feb 21, 2015

    @landmime
    Contributor

    I named it HVSTRLEN to be more consistent with STRLEN, and less similar to HLEN
    https://github.com/antirez/redis/pull/2415

  2. antirez commented on Feb 27, 2015

    @antirez
    Contributor

    Implemented as HSTRLEN. Uses tricks in order to be fast. Will be available in Redis >= 3.2.

  3. danj3 commented on Feb 27, 2015

    @danj3
    Author

    Thanks! I keep finding new and fantastic ways of using Redis. I really appreciate your work.

    Dan

    On Feb 27, 2015, at 0934, Salvatore Sanfilippo <[email protected] mailto:[email protected]> wrote:

    Closed #2065 https://github.com/antirez/redis/issues/2065.

    —
    Reply to this email directly or view it on GitHub https://github.com/antirez/redis/issues/2065#event-243296395.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions