Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Still no TtlDB support? #104

Open
Open

Description

@kadnan

I was wondering whether such support will be provided?

Activity

  1. Congyuwang commented on Nov 6, 2022

    @Congyuwang

    open with ttl? Try pip install rocksdict. https://github.com/Congyuwang/RocksDict

    Then you can have:

    from rocksdict import Rdict, AccessType
    
    # 24 hr TTL
    db = Rdict(path="db_path", access_type=AccessType.with_ttl(24 * 3600))
    db["a"] = 123
    db.close()
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