Skip to content
This repository was archived by the owner on Apr 6, 2019. It is now read-only.
This repository was archived by the owner on Apr 6, 2019. It is now read-only.

API for sorted sets using integers for scores #36

@fpagliughi

Description

@fpagliughi

In Redis, the sorted sets use double-precision floats to represent scores. In the cpp_redis API, these are exposed as integers, such as in this method:

redis_client& zremrangebyscore(const std::string& key, int min, int max, const reply_callback_t& reply_callback = nullptr);

In this case, min and max should be type double instead of int to expose the full functionality of the database server.

This is especially important since Redis is a great means to store time-series data in sorted sets for scientific and real-time applications. Those data sets typically use floating-point timestamps for sub-second precision.

This is a (minor) breaking change in the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions