Skip to content

Add a Duration object and use it for TTL #38

@schwern

Description

@schwern

Rather than taking a simple Integer number of microseconds, take a Duration object.

Ruby doesn't have a Duration object, and ActiveSupport::Duration is too big a dependency.

  • Support accepting duration object(s) in addition to Integer milliseconds.
    • Find a widely supported Ruby duration object OR
    • Write a really basic Momento::Duration object (or find a small gem).
      • Takes days, hours, minutes, seconds, milliseconds.
  • Accept :max for maximum TTL?

Related to #35

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions