Skip to content
This repository was archived by the owner on Dec 28, 2021. It is now read-only.
This repository was archived by the owner on Dec 28, 2021. It is now read-only.

Time of exactly 30 days is treated as timestamp, not timedelta #11

Description

@Quanyails

According to the Memcached wiki, expiration times in the range [0, 60*60*24*30] are treated as timedeltas, while anything higher is treated as a timestamp. The value 60*60*24*30 == 2592000 is currently treated as a timestamp when it should be a timedelta here.

Example:

import mockcache
mc_client = mockcache.Client()
mc_client.set('key', 'value', 60 * 60 * 24 * 30)
assert mc_client.get('key') is not None  # currently returns None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions