8000 [CLI] Feature Request: cache for CLI · Issue #758 · python-gitlab/python-gitlab · GitHub
[go: up one dir, main page]

Skip to content < 8000 div data-target="react-partial.reactRoot">
[CLI] Feature Request: cache for CLI #758
Open
@pcorpet

Description

@pcorpet

Description of the problem, including code/CLI snippet

Feature/Improve suggestion: I use the gitlab cli extensively in my flow and would strongly benefit a cache feature. It would work like this:

gitlab --cache 600 project-member list --project-id 12345

See https://github.com/github/hub/blob/d0e9e009ffc537c656a6cb8ec5cc132be5e4b8df/github/http.go#L400 for inspiration (the --cache feature on the hub tool, equivalent for GitHub).

Expected Behavior

Running this command twice in less than 10 minutes (600 seconds) would only query GitLab API the first time and return the same result.

Actual Behavior

The second command is as long as the first one.

Specifications

  • python-gitlab version: 1.8.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): gitlab.com

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0